editor.js revision eff9fa15f2fbdf22c5d33c82d48bd9d0ee0640ab
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller setUp : function() {
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller tearDown : function() {
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller Y.Assert.isObject(Y.Frame, 'EditorBase was not loaded');
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller Y.Assert.isObject(Y.EditorBase, 'EditorBase was not loaded');
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller use: ['node','selector-css3', 'dd-drag', 'dd-ddm']
a4304c3b0aa2b23fc8e820616d5cd09d82f49927Brendan Mmiller Y.Assert.isInstanceOf(Y.Frame, iframe, 'Iframe instance can not be created');
this.wait(function() {
test_frame_use: function() {
test = this;
test_frame_general: function() {
test_frame_destroy: function() {
test_editor: function() {
var iframeReady = false;
iframeReady = true;
var events = {
this.wait(function() {
Y.Assert.areSame(Y.EditorBase.FILTER_RGB(inst.one('b').getStyle('color')), '#ff0000', 'Extra CSS Failed');
test_copy_styles: function() {
Y.Assert.areSame(node.one('div').getStyle('color'), node2.getStyle('color'), 'Style failed to copy');
Y.Assert.areSame(node.one('div').getStyle('fontFamily'), node2.getStyle('fontFamily'), 'Style failed to copy');
test_resolve_node: function() {
test_get_content: function() {
Y.Assert.areEqual(ex + 'Hello <b>World</b>!!'.toLowerCase(), html.toLowerCase(), 'getContent failed to get the editor content');
test_font_size_normalize: function() {
test_selection_font_removal: function() {
Y.Assert.isTrue((node.getAttribute('style').indexOf('foo: bar') > -1), 'Failed to remove font-family ;');
Y.Assert.isTrue((node.getAttribute('style').indexOf('font-family') === -1), 'Failed to remove font-family ;');
test_gettext: function() {
test_selection_general: function() {
test_selection_methods: function() {
Y.Assert.isTrue(editor.getContent().indexOf('This is another test') > -1, 'Failed to insert content');
test_execCommands: function() {
test_window: function() {
Y.Assert.areEqual(Y.Node.getDOMNode(Y.one('#editor iframe').get('contentWindow')), Y.Node.getDOMNode(editor.getInstance().one('win')), 'Window object is not right');
test_doc: function() {
Y.Assert.areEqual(Y.Node.getDOMNode(Y.one('#editor iframe').get('contentWindow.document')), Y.Node.getDOMNode(editor.getInstance().one('doc')), 'Document object is not right');
test_destroy: function() {
test_br_plugin: function() {
test_para_plugin: function() {
test_double_plug_setup: function() {
test_double_plug: function() {
test_double_down: function() {
test_double_plug_setup2: function() {
test_double_plug2: function() {
test_double_down2: function() {
test_bidi_noplug: function() {
this.wait(function() {
test_bidi_plug: function() {
_should: {
fail: {
test_double_plug: true,
test_double_plug2: true,
test_bidi_noplug: true