PHP Classes

File: public/js/tinymce/src/core/src/test/js/browser/fmt/FontsizeFormatTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/core/src/test/js/browser/fmt/FontsizeFormatTest.js   Download  
File: public/js/tinymce/src/core/src/test/js/browser/fmt/FontsizeFormatTest.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,305 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.core.fmt.FontsizeFormatTest', [ 'ephox.agar.api.Pipeline', 'ephox.agar.api.RawAssertions', 'ephox.agar.api.Step', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'global!document', 'tinymce.themes.modern.Theme' ], function (Pipeline, RawAssertions, Step, TinyLoader, TinyUi, document, ModernTheme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; ModernTheme(); var sAssertMenuItemCount = function (expected, editor) { return Step.sync(function () { var actual = document.querySelectorAll('.mce-menu-item').length; RawAssertions.assertEq('Should be correct count', expected, actual); }); }; TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyUi = TinyUi(editor); Pipeline.async({}, [ tinyUi.sClickOnToolbar('Could not find fontsize select', 'div[aria-label="Font Sizes"] button'), tinyUi.sWaitForUi('Menu did not appear', 'div.mce-floatpanel'), sAssertMenuItemCount(1, editor) ], onSuccess, onFailure); }, { toolbar: 'fontsizeselect', fontsize_formats: '1em', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );