PHP Classes

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

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.table.CustomTableToolbarTest', [ 'ephox.agar.api.Assertions', 'ephox.agar.api.Chain', 'ephox.agar.api.GeneralSteps', 'ephox.agar.api.Logger', 'ephox.agar.api.Pipeline', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'ephox.sugar.api.search.SelectorFilter', 'tinymce.plugins.table.Plugin', 'tinymce.plugins.table.test.TableTestUtils', 'tinymce.themes.modern.Theme' ], function (Assertions, Chain, GeneralSteps, Logger, Pipeline, TinyApis, TinyLoader, TinyUi, SelectorFilter, TablePlugin, TableTestUtils, 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); var tinyUi = TinyUi(editor); Pipeline.async({}, [ Logger.t('test custom count of toolbar buttons', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetContent(tableHtml), TableTestUtils.sOpenToolbarOn(editor, 'table td', [0]), Chain.asStep({}, [ tinyUi.cWaitForUi('no context found', 'div[aria-label="Inline toolbar"]'), Chain.mapper(function (x) { return SelectorFilter.descendants(x, 'button').length; }), Assertions.cAssertEq('has correct count', 2) ]) ])) ], onSuccess, onFailure); }, { plugins: 'table', table_toolbar: 'tableprops tabledelete', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );