PHP Classes

File: public/js/tinymce/src/themes/inlite/src/test/js/atomic/core/ConvertTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/test/js/atomic/core/ConvertTest.js   Download  
File: public/js/tinymce/src/themes/inlite/src/test/js/atomic/core/ConvertTest.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: 683 bytes
 

Contents

Class file image Download
test( 'atomic.themes.core.ConvertTest', [ 'tinymce.themes.inlite.core.Convert' ], function (Convert) { var testConvert = function () { assert.eq({ x: 1, y: 2, w: 3, h: 4 }, Convert.fromClientRect({ left: 1, top: 2, width: 3, height: 4 })); assert.eq({ x: 2, y: 3, w: 4, h: 5 }, Convert.fromClientRect({ left: 2, top: 3, width: 4, height: 5 })); assert.eq({ left: 1, top: 2, width: 3, height: 4, bottom: 2 + 4, right: 1 + 3 }, Convert.toClientRect({ x: 1, y: 2, w: 3, h: 4 })); assert.eq({ left: 2, top: 3, width: 4, height: 5, bottom: 3 + 5, right: 2 + 4 }, Convert.toClientRect({ x: 2, y: 3, w: 4, h: 5 })); }; testConvert(); } );