PHP Classes

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

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.table.TableRowClassListTest', [ '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', 'tinymce.plugins.table.Plugin', 'tinymce.themes.modern.Theme' ], function (Assertions, Chain, GeneralSteps, Logger, Pipeline, TinyApis, TinyLoader, TinyUi, 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); var tinyUi = TinyUi(editor); Pipeline.async({}, [ Logger.t('no class input without setting', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetContent(tableHtml), tinyApis.sSetSelection([0, 0, 0, 0, 0], 0, [0, 0, 0, 0, 0], 1), tinyUi.sClickOnMenu('click table menu', 'span:contains("Table")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Row")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Row properties")'), Chain.asStep({}, [ tinyUi.cWaitForPopup('wait for popup', 'div[aria-label="Row properties"][role="dialog"]'), Chain.op(function (x) { Assertions.assertPresence( 'assert presence of col and row input', { 'label:contains("Class")': 0 }, x); }) ]), tinyUi.sClickOnUi('close popup', 'button > span:contains("Cancel")'), tinyApis.sSetContent('') ])), Logger.t('class input with setting', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetSetting('table_row_class_list', [{ title: 'test', value: 'test' }]), tinyApis.sSetContent(tableHtml), tinyApis.sSetSelection([0, 0, 0, 0, 0], 0, [0, 0, 0, 0, 0], 1), tinyUi.sClickOnMenu('click table menu', 'span:contains("Table")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Row")'), tinyUi.sClickOnUi('click table menu', 'div[role="menu"] span:contains("Row properties")'), tinyUi.sWaitForPopup('wait for popup', 'div[aria-label="Row properties"][role="dialog"]'), tinyUi.sClickOnUi('click class input', 'button > span:contains("test")'), tinyUi.sClickOnUi('click class input', 'div[role="menuitem"] > span:contains("test")'), tinyUi.sClickOnUi('close popup', 'button > span:contains("Ok")'), tinyApis.sAssertContentPresence({ 'tr.test': 1 }) ])) ], onSuccess, onFailure); }, { plugins: 'table', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );