PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/TextBox.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/TextBox.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/TextBox.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: 738 bytes
 

Contents

Class file image Download
(function() { module("tinymce.ui.TextBox", { setup: function() { document.getElementById('view').innerHTML = ''; }, teardown: function() { tinymce.dom.Event.clean(document.getElementById('view')); } }); function createTextBox(settings) { return tinymce.ui.Factory.create(tinymce.extend({ type: 'textbox' }, settings)).renderTo(document.getElementById('view')); } test("textbox text, size chars: 5", function() { var textBox = createTextBox({text: 'X', size: 5}); Utils.nearlyEqualRects(Utils.size(textBox), [69, 30], 30); }); test("textbox text, size 100x100", function() { var textBox = createTextBox({text: 'X', width: 100, height: 100}); deepEqual(Utils.size(textBox), [100, 100]); }); })();