/[projects]/misc/horsensspejder-web/jquery/jquery-ui-1.10.3/tests/unit/menu/menu_test_helpers.js
ViewVC logotype

Contents of /misc/horsensspejder-web/jquery/jquery-ui-1.10.3/tests/unit/menu/menu_test_helpers.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (show annotations) (download) (as text)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File MIME type: application/javascript
File size: 480 byte(s)
initial import
1 (function() {
2
3 var lastItem,
4 log = [];
5
6 TestHelpers.menu = {
7 log: function( message, clear ) {
8 if ( clear ) {
9 log.length = 0;
10 }
11 if ( message === undefined ) {
12 message = lastItem;
13 }
14 log.push( $.trim( message ) );
15 },
16
17 logOutput: function() {
18 return log.join( "," );
19 },
20
21 clearLog: function() {
22 log.length = 0;
23 },
24
25 click: function( menu, item ) {
26 lastItem = item;
27 menu.children( ":eq(" + item + ")" ).find( "a:first" ).trigger( "click" );
28 }
29 };
30
31 })();

  ViewVC Help
Powered by ViewVC 1.1.20