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

Commit

Permalink
Kludgey fix in the test now matches the kludgey fix in the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilto committed Sep 20, 2012
1 parent 027b190 commit 5a02567
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/unit/select/select_native.js
Expand Up @@ -76,11 +76,13 @@
ok( $.mobile.zoom.enabled === false, "zoom is disabled on vmousedown" );
})
.one("mouseup.test", function(){
ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
$.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
$(document).unbind(".test");
$( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault )
start();
setTimeout(function() {
ok( $.mobile.zoom.enabled === true, "zoom is enabled on mouseup" );
$.mobile.selectmenu.prototype.options.preventFocusZoom = zoomoptiondefault;
$(document).unbind(".test");
$( "#select-choice-native" ).selectmenu( "option", "preventFocusZoom", zoomoptiondefault );
start();
}, 0);
});

$( "#select-choice-native" )
Expand Down

0 comments on commit 5a02567

Please sign in to comment.