mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-05 00:27:25 +03:00
Merge commit 'd21ea7816e
' as 'jquery-ui'
This commit is contained in:
commit
e904a80717
629 changed files with 341074 additions and 0 deletions
31
jquery-ui/tests/unit/menu/menu_test_helpers.js
vendored
Normal file
31
jquery-ui/tests/unit/menu/menu_test_helpers.js
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
(function() {
|
||||
|
||||
var lastItem,
|
||||
log = [];
|
||||
|
||||
TestHelpers.menu = {
|
||||
log: function( message, clear ) {
|
||||
if ( clear ) {
|
||||
log.length = 0;
|
||||
}
|
||||
if ( message === undefined ) {
|
||||
message = lastItem;
|
||||
}
|
||||
log.push( $.trim( message ) );
|
||||
},
|
||||
|
||||
logOutput: function() {
|
||||
return log.join( "," );
|
||||
},
|
||||
|
||||
clearLog: function() {
|
||||
log.length = 0;
|
||||
},
|
||||
|
||||
click: function( menu, item ) {
|
||||
lastItem = item;
|
||||
menu.children( ":eq(" + item + ")" ).trigger( "click" );
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue