PHP Classes

File: public/js/tinymce/src/plugins/media/src/test/js/atomic/HtmlToDataTest.js

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

Contents

Class file image Download
test( 'atomic.core.HtmlToDataTest', [ 'tinymce.plugins.media.core.HtmlToData', 'ephox.agar.api.RawAssertions' ], function (HtmlToData, RawAssertions) { var testHtmlToData = function (html, expected) { var actual = HtmlToData.htmlToData([], html); RawAssertions.assertEq('Assert equal', expected, actual); }; testHtmlToData('<div data-ephox-embed-iri="a"></div>', { type: 'ephox-embed-iri', source1: 'a', source2: '', poster: '', width: '', height: '' }); testHtmlToData('<div data-ephox-embed-iri="a" style="max-width: 300px; max-height: 200px"></div>', { type: 'ephox-embed-iri', source1: 'a', source2: '', poster: '', width: '300', height: '200' }); testHtmlToData('<iframe src="//www.youtube.com/embed/b3XFjWInBog" width="560" height="314" allowFullscreen="1"></iframe>', { src: "//www.youtube.com/embed/b3XFjWInBog", width: "560", height: "314", allowfullscreen: "1", type: "iframe", source1: "//www.youtube.com/embed/b3XFjWInBog", source2: "", poster: "" }); } );