Ticket #4162: 4162.patch

File 4162.patch, 1.8 KB (added by Garry Yao, 10 years ago)
  • _source/tests/plugins/htmldataprocessor/htmldataprocessor.html

     
    88        %REMOVE_LINE% -->
    99        <script type="text/javascript" src="../../test.js"></script>
    1010        <script type="text/javascript">
    11 
    12 CKEDITOR.plugins.load( 'htmldataprocessor' );
    13 
    14         </script>
    15         <script type="text/javascript">
    1611        //<![CDATA[
    1712
     13// Load the required plugins and launch the runner.
     14CKEDITOR.test.deferRunner = true;
     15CKEDITOR.plugins.load( 'htmldataprocessor' , function(){
     16 CKEDITOR.test.runner.run();
     17} );
     18
    1819var testCase;
    1920
    2021CKEDITOR.test.addTestCase( testCase = (function()
  • _source/tests/test.js

     
    9090                        runner.subscribe(runner.TEST_CASE_COMPLETE_EVENT, window.parent.onTestComplete);
    9191                }
    9292
    93                 runner.run();
     93                if ( !CKEDITOR.test.deferRunner )
     94                        runner.run();
    9495        };
    9596})();
  • _source/core/test.js

     
    3030         */
    3131        assert : YAHOO.util.Assert,
    3232
     33        runner : YAHOO.tool.TestRunner,
     34
    3335        /**
    3436         * Adds a test case to the test runner.
    3537         * @param {Object} testCase The test case object. See other tests for
     
    173175                }
    174176
    175177                return retval;
    176         }
     178        },
     179
     180        /**
     181         * Whether control the runner manually instead of running on window onload.
     182         */
     183        deferRunner : false
    177184};
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy