PHP Classes

File: public/js/tinymce/src/core/src/test/js/browser/keyboard/SpaceKeyTest.js

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

Contents

Class file image Download
asynctest( 'browser.tinymce.core.keyboard.SpaceKeyTest', [ 'ephox.agar.api.GeneralSteps', 'ephox.agar.api.Keys', 'ephox.agar.api.Logger', 'ephox.agar.api.Pipeline', 'ephox.mcagar.api.TinyActions', 'ephox.mcagar.api.TinyApis', 'ephox.mcagar.api.TinyLoader', 'tinymce.themes.modern.Theme' ], function (GeneralSteps, Keys, Logger, Pipeline, TinyActions, TinyApis, TinyLoader, Theme) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; Theme(); TinyLoader.setup(function (editor, onSuccess, onFailure) { var tinyApis = TinyApis(editor); var tinyActions = TinyActions(editor); Pipeline.async({}, [ Logger.t('Press space at beginning of inline boundary', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetContent('<p>a <a href="#">b</a> c</p>'), tinyApis.sSetCursor([0, 1, 0], 0), tinyApis.sNodeChanged, tinyActions.sContentKeystroke(Keys.space(), {}), tinyApis.sAssertSelection([0, 1, 0], 1, [0, 1, 0], 1), tinyApis.sAssertContent('<p>a <a href="#">&nbsp;b</a> c</p>') ])), Logger.t('Press space at end of inline boundary', GeneralSteps.sequence([ tinyApis.sFocus, tinyApis.sSetContent('<p>a <a href="#">b</a> c</p>'), tinyApis.sSetCursor([0, 1, 0], 1), tinyApis.sNodeChanged, tinyActions.sContentKeystroke(Keys.space(), {}), tinyApis.sAssertSelection([0, 1, 0], 2, [0, 1, 0], 2), tinyApis.sAssertContent('<p>a <a href="#">b&nbsp;</a> c</p>') ])) ], onSuccess, onFailure); }, { indent: false, skin_url: '/project/src/skins/lightgray/dist/lightgray' }, success, failure); } );