minor indentation issue and mocking to fix test failures

This commit is contained in:
John Bender 2011-02-06 23:06:33 -08:00
parent d4fd6d06dc
commit 5d7938cb4e

View file

@ -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(){