Bug 967613 - Tighten up timing of touch injection calls to avoid the 100msec interval Windows enforces. r=mbrubeck

This commit is contained in:
Jim Mathies 2014-03-06 16:23:23 -06:00
parent 6b5fa5e337
commit c48cfb9326

View File

@ -27,6 +27,11 @@ function tearDown() {
PanelUI.hide();
BookmarksTestHelper.restore();
HistoryTestHelper.restore();
Browser.selectedTab
.browser
.contentWindow
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils).clearNativeTouchSequence();
}
/*
@ -85,7 +90,7 @@ gTests.push({
let domUtils = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
var touchdrag = new TouchDragAndHold();
touchdrag.useNativeEvents = true;
touchdrag.stepTimeout = 20;
touchdrag.stepTimeout = 5;
touchdrag.numSteps = 20;
stopwatch.start();
@ -122,7 +127,7 @@ gTests.push({
let domUtils = win.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils);
var touchdrag = new TouchDragAndHold();
touchdrag.useNativeEvents = true;
touchdrag.stepTimeout = 20;
touchdrag.stepTimeout = 5;
touchdrag.numSteps = 10;
let iterations = 3;