PHP Classes

File: public/js/tinymce/src/plugins/paste/src/test/js/atomic/InternalHtmlTest.js

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

Contents

Class file image Download
test( 'atomic.tinymce.plugins.paste.InternalHtmlTest', [ 'tinymce.plugins.paste.core.InternalHtml' ], function (InternalHtml) { var testMark = function () { assert.eq('<!-- x-tinymce/html -->abc', InternalHtml.mark('abc')); }; var testUnmark = function () { assert.eq('abc', InternalHtml.unmark('<!-- x-tinymce/html -->abc')); assert.eq('abc', InternalHtml.unmark('abc<!-- x-tinymce/html -->')); }; var testIsMarked = function () { assert.eq(true, InternalHtml.isMarked('<!-- x-tinymce/html -->abc')); assert.eq(true, InternalHtml.isMarked('abc<!-- x-tinymce/html -->')); assert.eq(false, InternalHtml.isMarked('abc')); }; var testInternalHtmlMime = function () { assert.eq('x-tinymce/html', InternalHtml.internalHtmlMime()); }; testMark(); testUnmark(); testIsMarked(); testInternalHtmlMime(); } );