PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/Panel.js

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/Panel.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/Panel.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 807 bytes
 

Contents

Class file image Download
(function() { var panel; module("tinymce.ui.Panel", { setup: function() { document.getElementById('view').innerHTML = ''; }, teardown: function() { tinymce.dom.Event.clean(document.getElementById('view')); } }); function createPanel(settings) { return tinymce.ui.Factory.create(tinymce.extend({ type: 'panel' }, settings)).renderTo(document.getElementById('view')).reflow(); } test("panel width: 100, height: 100", function() { panel = createPanel({ width: 100, height: 100 }); Utils.nearlyEqualRects(Utils.rect(panel), [0, 0, 100, 100], 4); }); test("panel border: 1, width: 100, height: 100", function() { panel = createPanel({ width: 100, height: 100, border: 1 }); Utils.nearlyEqualRects(Utils.rect(panel), [0, 0, 100, 100], 4); }); })();