Permalink
Browse files

Kludgey fix in the test now matches the kludgey fix in the code.

  • Loading branch information...
1 parent 027b190 commit 5a025671a84aa0b31aac687ee0cda152ef19bf65 @Wilto Wilto committed Sep 20, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 tests/unit/select/select_native.js
@@ -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" )

0 comments on commit 5a02567

Please sign in to comment.