summaryrefslogtreecommitdiffstats
path: root/apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js')
-rw-r--r--apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js b/apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js
deleted file mode 100644
index b6c09ad..0000000
--- a/apps/it/static/js/ui/tests/unit/menu/menu_test_helpers.js
+++ /dev/null
@@ -1,31 +0,0 @@
-(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 + ")" ).find( "a:first" ).trigger( "click" );
- }
-};
-
-})();