PHP Classes

File: public/js/tinymce/src/plugins/help/src/test/js/browser/PluginTest.js

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

Contents

Class file image Download
asynctest( 'browser.plugin.PluginTest', [ 'ephox.agar.api.Assertions', 'ephox.agar.api.Chain', 'ephox.agar.api.Pipeline', 'ephox.agar.api.UiFinder', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyDom', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'ephox.sugar.api.properties.Html', 'global!document', 'tinymce.plugins.help.Plugin', 'tinymce.plugins.link.Plugin', 'tinymce.themes.modern.Theme' ], function (Assertions, Chain, Pipeline, UiFinder, TinyApis, TinyDom, TinyLoader, TinyUi, Html, document, HelpPlugin, LinkPlugin, Theme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; Theme(); HelpPlugin(); LinkPlugin(); var sAssertPluginList = function (html) { return Chain.asStep(TinyDom.fromDom(document.body), [ UiFinder.cWaitFor('Could not find notification', 'div.mce-floatpanel ul'), Chain.mapper(Html.get), Assertions.cAssertHtml('Plugin list html does not match', html) ]); }; TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyUi = TinyUi(editor); Pipeline.async({}, [ tinyUi.sClickOnToolbar('click on button', 'button'), sAssertPluginList('<li><a href="https://www.tinymce.com/docs/plugins/help" target="_blank" rel="noopener">Help</a></li><li><a href="https://www.tinymce.com/docs/plugins/link" target="_blank" rel="noopener">Link</a></li>') ], onSuccess, onFailure); }, { plugins: 'help link', toolbar: 'help', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );