PHP Classes

File: public/js/tinymce/src/plugins/link/src/test/js/browser/LinkClassListTest.js

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

Contents

Class file image Download
asynctest( 'browser.tinymce.plugins.link.LinkClassListTest', [ 'ephox.agar.api.Pipeline', 'ephox.agar.api.UiFinder', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyDom', 'ephox.mcagar.api.TinyLoader', 'ephox.mcagar.api.TinyUi', 'global!document', 'tinymce.plugins.link.Plugin', 'tinymce.themes.modern.Theme' ], function (Pipeline, UiFinder, TinyApis, TinyDom, TinyLoader, TinyUi, document, LinkPlugin, ModernTheme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; ModernTheme(); LinkPlugin(); TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyUi = TinyUi(editor); var tinyApis = TinyApis(editor); Pipeline.async({}, [ // no link class by default tinyUi.sClickOnToolbar('click on link button', 'div[aria-label="Insert/edit link"] > button'), tinyUi.sWaitForPopup('wait for link dialog', 'div[aria-label="Insert link"][role="dialog"]'), UiFinder.sNotExists(TinyDom.fromDom(document.body), 'label:contains("Class")'), tinyUi.sClickOnUi('click on cancel', 'button:contains("Cancel")'), // but showing when list is set tinyApis.sSetSetting('link_class_list', [ { title: 'a', value: 'b' }, { title: 'c', value: 'd' } ]), tinyUi.sClickOnToolbar('click on link button', 'div[aria-label="Insert/edit link"] > button'), tinyUi.sWaitForPopup('wait for link dialog', 'div[aria-label="Insert link"][role="dialog"]'), UiFinder.sExists(TinyDom.fromDom(document.body), 'label:contains("Class")'), tinyUi.sClickOnUi('click on cancel', 'button:contains("Cancel")') ], onSuccess, onFailure); }, { plugins: 'link', toolbar: 'link', skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );