PHP Classes

File: public/js/tinymce/src/plugins/table/src/test/js/browser/settings/TableDefaultAttributesTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/table/src/test/js/browser/settings/TableDefaultAttributesTest.js   Download  
File: public/js/tinymce/src/plugins/table/src/test/js/browser/settings/TableDefaultAttributesTest.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: 1,938 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.table.TableDefaultAttributesTest', [ 'ephox.agar.api.GeneralSteps', 'ephox.agar.api.Logger', 'ephox.agar.api.Pipeline', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'tinymce.plugins.table.Plugin', 'tinymce.themes.modern.Theme' ], function (GeneralSteps, Logger, Pipeline, TinyApis, TinyLoader, TinyUi, TablePlugin, ModernTheme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; ModernTheme(); TablePlugin(); TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyApis = TinyApis(editor); var tinyUi = TinyUi(editor); Pipeline.async({}, [ Logger.t('no attributes without setting', GeneralSteps.sequence([ tinyApis.sFocus, tinyUi.sClickOnMenu('click table menu', 'span:contains("Table")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Table")'), tinyUi.sClickOnUi('click table grid', 'a#mcegrid11'), tinyApis.sAssertContentPresence({ 'table': 1, 'table[title="x"]': 0 }), tinyApis.sSetContent('') ])), Logger.t('test default title attribute', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetSetting('table_default_attributes', { title: 'x' }), tinyUi.sClickOnMenu('click table menu', 'span:contains("Table")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Table")'), tinyUi.sClickOnUi('click table grid', 'a#mcegrid11'), tinyApis.sAssertContentPresence({ 'table': 1, 'table[title="x"]': 1 }), tinyApis.sSetContent('') ])) ], onSuccess, onFailure); }, { indent: false, plugins: 'table', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );