PHP Classes

File: public/js/tinymce/src/plugins/table/src/test/js/browser/settings/DisabledTableToolbarTest.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/DisabledTableToolbarTest.js   Download  
File: public/js/tinymce/src/plugins/table/src/test/js/browser/settings/DisabledTableToolbarTest.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,741 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.table.DisableTableToolbarTest', [ 'ephox.agar.api.GeneralSteps', 'ephox.agar.api.Logger', 'ephox.agar.api.Pipeline', 'ephox.agar.api.Step', 'ephox.agar.api.UiFinder', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyDom', 'ephox.mcagar.api.TinyLoader', 'global!document', 'tinymce.plugins.table.Plugin', 'tinymce.themes.modern.Theme' ], function (GeneralSteps, Logger, Pipeline, Step, UiFinder, TinyApis, TinyDom, TinyLoader, document, TablePlugin, ModernTheme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; ModernTheme(); TablePlugin(); var tableHtml = '<table><tbody><tr><td>x</td></tr></tbody></table>'; TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyApis = TinyApis(editor); Pipeline.async({}, [ Logger.t('test that table toolbar can be disabled', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetSetting('table_toolbar', 'tableprops tabledelete'), tinyApis.sSetContent(tableHtml), tinyApis.sSetSelection([0, 0, 0, 0, 0], 0, [0, 0, 0, 0, 0], 1), Step.wait(100), // How should I do this better? // I want to check that the inline toolbar does not appear, // but I have to wait unless it won't exist any way because it's too fast UiFinder.sNotExists(TinyDom.fromDom(document.body), 'div[aria-label="Inline toolbar"]') ])) ], onSuccess, onFailure); }, { plugins: 'table', table_toolbar: '', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );