|
|
@@ -8,11 +8,9 @@
|
|
|
'use strict';
|
|
|
|
|
|
( function() {
|
|
|
- // Override bender.start to wait until the "ckeditor" module is ready.
|
|
|
- var originalStart = bender.start;
|
|
|
- bender.start = function() {
|
|
|
- CKEDITOR.require( [ 'ckeditor' ], function() {
|
|
|
- originalStart.apply( this, arguments );
|
|
|
- } );
|
|
|
- };
|
|
|
+ // Make Bender wait to start running tests.
|
|
|
+ var done = bender.defer();
|
|
|
+
|
|
|
+ // Wait for the "ckeditor" module to be ready to start testing.
|
|
|
+ CKEDITOR.require( [ 'ckeditor' ], done );
|
|
|
} )();
|