| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- /* globals bender, CKEDITOR */
- 'use strict';
- ( function() {
- // 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 );
- /**
- * AMD tools related to CKEditor.
- */
- bender.amd = {
- /**
- * Gets and object which holds the CKEditor modules guaranteed to be loaded before tests start.
- *
- * @params {...String} module The name of the module to load.
- * @returns {Object} The object that will hold the loaded modules.
- */
- require: function() {
- var modules = {};
- var done = bender.defer();
- var names = [].slice.call( arguments );
- CKEDITOR.require( names, function() {
- for ( var i = 0; i < names.length; i++ ) {
- modules[ names[ i ] ] = arguments[ i ] ;
- }
- // Finally give green light for tests to start.
- done();
- } );
- return modules;
- }
- };
- } )();
|