From 3909e6d89e01e4cd8777377c63037896bb95aa2f Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 25 Nov 2011 21:18:19 +0100 Subject: new jq layout --- .../jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/webapp/jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js (limited to 'src/main/webapp/jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js') diff --git a/src/main/webapp/jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js b/src/main/webapp/jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js new file mode 100644 index 0000000..e83795e --- /dev/null +++ b/src/main/webapp/jquery-ui-1.9pre/tests/unit/menu/menu_test_helpers.js @@ -0,0 +1,14 @@ +function menu_log( message, clear ) { + if ( clear ) { + $( "#log" ).empty(); + } + if ( message === undefined ) { + message = $( "#log" ).data( "lastItem" ); + } + $( "#log" ).prepend( $.trim( message ) + "," ); +} + +function menu_click( menu, item ) { + $( "#log" ).data( "lastItem", item ); + menu.children( ":eq(" + item + ")" ).find( "a:first" ).trigger( "click" ); +} \ No newline at end of file -- cgit v1.1