PHP Classes

File: public/js/tinymce/src/plugins/media/src/test/js/browser/DimensionsFalseEmbedTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/media/src/test/js/browser/DimensionsFalseEmbedTest.js   Download  
File: public/js/tinymce/src/plugins/media/src/test/js/browser/DimensionsFalseEmbedTest.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 2,203 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.media.DimensionsFalseEmbedTest', [ 'ephox.agar.api.ApproxStructure', 'ephox.agar.api.Pipeline', 'ephox.agar.api.Step', 'ephox.agar.api.UiFinder', 'ephox.agar.api.Waiter', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyDom', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'tinymce.plugins.media.Plugin', 'tinymce.plugins.media.test.Utils', 'tinymce.themes.modern.Theme' ], function (ApproxStructure, Pipeline, Step, UiFinder, Waiter, TinyApis, TinyDom, TinyLoader, TinyUi, Plugin, Utils, Theme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; Plugin(); Theme(); var struct = ApproxStructure.build(function (s, str) { return s.element('body', { children: [ s.element('p', { children: [ s.element('span', { attrs: { 'data-mce-object': str.is('iframe') }, children: [ s.element('iframe', { attrs: { width: str.is('200'), height: str.is('100') } }), s.anything() ] }), s.anything() ] }) ] }); }); TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyUi = TinyUi(editor); var tinyApis = TinyApis(editor); Pipeline.async({}, [ Utils.sOpenDialog(tinyUi), Utils.sPasteTextareaValue( tinyUi, '<iframe width="200" height="100" src="a" ' + ' frameborder="0" allowfullscreen></iframe>' ), Utils.sSubmitDialog(tinyUi), Waiter.sTryUntil( 'content was not expected structure', tinyApis.sAssertContentStructure(struct), 100, 4000 ) ], onSuccess, onFailure); }, { plugins: ["media"], toolbar: "media", media_dimensions: false, skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );