assets/ckeditor/tests/_benderjs/ckeditor/static/bot.js
/**
	 * Open a menu button drop down.
	 * @param {String} name Name of the panel button.
	 * @param {Function} callback The function invoked when panel is opened.
	 */
Open a menu button drop down.
@param {String} name Name of the panel button.
@param {Function} callback The function invoked when panel is opened.
Open a menu button drop down . @param { String } name Name of the panel button . @param { Function } callback The function invoked when panel is opened .
function menuOrPanel( isPanel ) {
		return function( name, callback ) {
			var editor = this.editor,
				btn = editor.ui.get( name ),
				tc = this.testCase,
				btnEl;
			editor.once( 'panelShow', function() {
				setTimeout( function() {
					tc.resume(
						function() {
							callback.call( tc, isPanel ? btn._.panel : btn._.menu );
						}
						);
				} );
			} );
			btnEl = CKEDITOR.document.getById( btn._.id );
			btnEl.$[ CKEDITOR.env.ie ? 'onmouseup' : 'onclick' ]();
			tc.wait();
		};
	}
function menuOrPanel ( isPanel ) { return function ( name , callback ) { var editor = this . editor , btn = editor . ui . get ( name ) , tc = this . testCase , btnEl ; editor . once ( 'panelShow' , function ( ) { setTimeout ( function ( ) { tc . resume ( function ( ) { callback . call ( tc , isPanel ? btn . _ . panel : btn . _ . menu ) ; } ) ; } ) ; } ) ; btnEl = CKEDITOR . document . getById ( btn . _ . id ) ; btnEl . $ [ CKEDITOR . env . ie ? 'onmouseup' : 'onclick' ] ( ) ; tc . wait ( ) ; } ; }
Open a menu button drop down.
Open a menu button drop down .
// Make sure resume comes after wait. // combo panel opening is synchronous.