PHP Classes

File: public/js/tinymce/src/plugins/visualchars/src/test/js/atomic/DataTest.js

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

Contents

Class file image Download
test( 'atomic.tinymce.plugins.visualchars.DataTest', [ 'ephox.agar.api.RawAssertions', 'tinymce.plugins.visualchars.core.Data' ], function (RawAssertions, Data) { RawAssertions.assertEq( 'should return correst selector', 'span.mce-a,span.mce-b', Data.charMapToSelector({ a: "a", b: "b" }) ); RawAssertions.assertEq( 'should return correct regexp', "/[ab]/", Data.charMapToRegExp({ a: "a", b: "b" }).toString() ); RawAssertions.assertEq( 'should return correct global regexp', "/[ab]/g", Data.charMapToRegExp({ a: "a", b: "b" }, true).toString() ); } );