PHP Classes

File: public/js/tinymce/src/plugins/nonbreaking/src/test/js/browser/NonbreakingSettingsTest.js

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

Contents

Class file image Download
test( 'browser.tinymce.plugins.nonbreaking.SettingsTest', [ 'ephox.agar.api.Assertions', 'tinymce.core.Editor', 'tinymce.core.EditorManager', 'tinymce.plugins.nonbreaking.api.Settings' ], function (Assertions, Editor, EditorManager, Settings) { Assertions.assertEq('Should be 0 as default', 0, Settings.getKeyboardSpaces(new Editor('x', {}, EditorManager))); Assertions.assertEq('Should return 3 if set to true', 3, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: true }, EditorManager))); Assertions.assertEq('Should return 0 if set to false', 0, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: false }, EditorManager))); Assertions.assertEq('Should return number if set', 4, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: 4 }, EditorManager))); } );