mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-22 23:24:43 +00:00
minor indentation issue and mocking to fix test failures
This commit is contained in:
parent
d4fd6d06dc
commit
5d7938cb4e
1 changed files with 9 additions and 4 deletions
|
|
@ -113,15 +113,20 @@
|
|||
$($.event.special.scrollstart).trigger("touchmove");
|
||||
|
||||
stop();
|
||||
setTimeout(function(){
|
||||
ok(triggered, "triggered");
|
||||
start();
|
||||
}, 50);
|
||||
setTimeout(function(){
|
||||
ok(triggered, "triggered");
|
||||
start();
|
||||
}, 50);
|
||||
});
|
||||
|
||||
var forceTouchSupport = function(){
|
||||
$.support.touch = true;
|
||||
$.testHelper.reloadLib(libName);
|
||||
|
||||
// mock originalEvent information
|
||||
$.Event.prototype.originalEvent = {
|
||||
touches: [{ 'pageX' : 0 }, { 'pageY' : 0 }]
|
||||
};
|
||||
};
|
||||
|
||||
test( "long press fires tap hold after 750 ms", function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue