From 648be47a0760b0387182401493384104a31f1ea9 Mon Sep 17 00:00:00 2001 From: John Bender Date: Sat, 12 Mar 2011 22:55:48 -0800 Subject: [PATCH] reset location hash in select menu tests --- tests/unit/select/select_core.js | 7 +++++-- tests/unit/select/select_events.js | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/unit/select/select_core.js b/tests/unit/select/select_core.js index 7af1a850..a21b4993 100644 --- a/tests/unit/select/select_core.js +++ b/tests/unit/select/select_core.js @@ -5,10 +5,13 @@ (function($){ var libName = "jquery.mobile.forms.select.js"; - module(libName); + module(libName, { + teardown: function(){ location.hash = ""; } + }); + asyncTest( "custom select menu always renders screen from the left", function(){ - expect( 2 ); + expect( 1 ); var select = $("ul#select-offscreen-menu"); $('#select-offscreen-container a').trigger($.support.touch ? "touchend" : "mouseup"); diff --git a/tests/unit/select/select_events.js b/tests/unit/select/select_events.js index 5de5d7be..75f6eca6 100644 --- a/tests/unit/select/select_events.js +++ b/tests/unit/select/select_events.js @@ -6,7 +6,9 @@ var mouseUpTouchEnd = $.support.touch ? "touchend" : "mouseup", libName = "jquery.mobile.forms.select.js"; - module(libName); + module(libName, { + teardown: function(){ location.hash = ""; } + }); test( "a large select menu should come up in a dialog many times", function(){ var menu, select = $("#select-choice-many-container a");