Ticket #4133: 4133.patch
File 4133.patch, 964 bytes (added by , 15 years ago) |
---|
-
_source/tests/core/ckeditor.html
9 9 <script type="text/javascript" src="../test.js"></script> 10 10 <script type="text/javascript"> 11 11 //<![CDATA[ 12 // Clean up all instances been created on the page. 13 function removeAllInstances() 14 { 15 var allInstances = CKEDITOR.instances; 16 for( var i in allInstances ) 17 { 18 CKEDITOR.remove( allInstances[ i ] ); 19 } 20 } 12 21 13 CKEDITOR.test.addTestCase( (function()22 CKEDITOR.test.addTestCase( (function() 14 23 { 15 24 // Local reference to the "assert" object. 16 25 var assert = CKEDITOR.test.assert; … … 127 136 assert.areSame( editor, CKEDITOR.instances.test_add ); 128 137 }, 129 138 139 setUp : function() 140 { 141 removeAllInstances(); 142 }, 143 130 144 name : document.title 131 145 }; 132 146 })() );