Ticket #4133: 4133.patch

File 4133.patch, 964 bytes (added by Garry Yao, 15 years ago)
  • _source/tests/core/ckeditor.html

     
    99        <script type="text/javascript" src="../test.js"></script>
    1010        <script type="text/javascript">
    1111        //<![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        }
    1221
    13 CKEDITOR.test.addTestCase( (function()
     22        CKEDITOR.test.addTestCase( (function()
    1423{
    1524        // Local reference to the "assert" object.
    1625        var assert = CKEDITOR.test.assert;
     
    127136                        assert.areSame( editor, CKEDITOR.instances.test_add );
    128137                },
    129138
     139                setUp : function()
     140                {
     141                        removeAllInstances();
     142                },
     143
    130144                name : document.title
    131145        };
    132146})() );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy