From: <com...@fc...> - 2009-07-30 10:25:16
|
Author: tobiasz.cudnik Date: 2009-07-30 12:24:58 +0200 (Thu, 30 Jul 2009) New Revision: 4023 Modified: CKEditor/trunk/_source/tests/core/dom/element.html CKEditor/trunk/_source/tests/plugins/htmldataprocessor/htmldataprocessor.html Log: Fixing #1451 - [FF2] test_toDataFormat_3 test fails. Modified: CKEditor/trunk/_source/tests/core/dom/element.html =================================================================== --- CKEditor/trunk/_source/tests/core/dom/element.html 2009-07-30 10:09:26 UTC (rev 4022) +++ CKEditor/trunk/_source/tests/core/dom/element.html 2009-07-30 10:24:58 UTC (rev 4023) @@ -82,6 +82,12 @@ assert.areEqual( 'p', element.getName(), 'element name doesn\'t match' ); assert.areEqual( 'My test', element.$.innerHTML, 'the innerHTML doesn\'t match' ); }, + + test_createFromHtml2 : function() + { + var element = new CKEDITOR.dom.element.createFromHtml( '<div><x:x><p>Test</p></div>' ); + assert.areEqual( 'Test', element.getChild( 0, 0 ).innerHTML, "getChild( 0, 0 ) failed for <div><x:x><p>Test</p></div>" ); + }, test_append1 : function() { Modified: CKEditor/trunk/_source/tests/plugins/htmldataprocessor/htmldataprocessor.html =================================================================== --- CKEditor/trunk/_source/tests/plugins/htmldataprocessor/htmldataprocessor.html 2009-07-30 10:09:26 UTC (rev 4022) +++ CKEditor/trunk/_source/tests/plugins/htmldataprocessor/htmldataprocessor.html 2009-07-30 10:24:58 UTC (rev 4023) @@ -86,9 +86,7 @@ test_toDataFormat_3 : function() { - var element = new CKEDITOR.dom.element.createFromHtml( '<div><x:x><p>Test</p></div>' ); - - assert.areSame( '<x:x><p>Test</p></x:x>', getDataProcessor().toDataFormat( element.getHtml() ) ); + assert.areSame( '<div><x:x><p>Test</p></x:x></div>', getDataProcessor().toDataFormat( '<div><x:x><p>Test</p></div>' ) ); }, test_toDataFormat_ticket_2774 : function() |