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");