PHP Classes

File: public/js/tinymce/src/themes/mobile/src/test/js/phantom/features/IdentifyToolbarTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/test/js/phantom/features/IdentifyToolbarTest.js   Download  
File: public/js/tinymce/src/themes/mobile/src/test/js/phantom/features/IdentifyToolbarTest.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,496 bytes
 

Contents

Class file image Download
test( 'features.IdentifyToolbarTest', [ 'ephox.agar.api.Assertions', 'tinymce.themes.mobile.features.Features' ], function (Assertions, Features) { var check = function (label, expected, input) { var actual = Features.identify(input); Assertions.assertEq(label, expected, actual); }; check('Default toolbar', [ 'undo', 'bold', 'italic', 'link', 'image', 'bullist', 'styleselect' ], { }); check('Empty toolbar', [ ], { toolbar: '' }); check('Empty toolbar (array)', [ ], { toolbar: [ ] }); check('Flat toolbar', [ 'undo', 'bold' ], { toolbar: 'undo bold' }); check('Flat toolbar (array)', [ 'undo', 'bold' ], { toolbar: [ 'undo', 'bold' ] }); check('Nested toolbar (array)', [ 'undo', 'bold', 'italic' ], { toolbar: [ [ 'undo' ], [ 'bold', 'italic' ] ] }); check('Mixed toolbar (array)', [ 'undo', 'bold', 'redo', 'italic' ], { toolbar: [ [ 'undo' ], [ ], [ 'bold redo', 'italic' ] ] }); check('Toolbar with pipes', [ 'undo', 'bold', 'italic', 'bullist', 'styleselect' ], { toolbar: [ [ 'undo | bold | italic' ], [ 'bullist styleselect' ] ] }); check('Unknown identifiers', [ 'undo', 'redo', 'styleselect', 'bold', 'italic', 'alignleft', 'aligncenter', 'alignright', 'alignjustify', 'bullist', 'numlist', 'outdent', 'indent', 'link', 'image' ], { toolbar: 'undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image' }); } );