Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 4b957ac

Browse files
Wiltojaspermdegroot
authored andcommitted
Kludgey fix in the test now matches the kludgey fix in the code.
1 parent fda3e5e commit 4b957ac

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/unit/select/select_native.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@
7676
ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
7777
})
7878
.one("mouseup.test", function(){
79-
ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
80-
$.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
81-
$(document).unbind(".test");
82-
$( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault )
83-
start();
79+
setTimeout(function() {
80+
ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
81+
$.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
82+
$(document).unbind(".test");
83+
$( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
84+
start();
85+
}, 0);
8486
});
8587

8688
$( "#select-choice-native" )

0 commit comments

Comments
 (0)