зеркало из https://github.com/mozilla/gecko-dev.git
b=796980, fix content/events/test/window_wheel_default_action.html; r=ehsan,orange
This commit is contained in:
Родитель
cfe1a7b7fb
Коммит
3f4b63a927
|
@ -49,6 +49,10 @@
|
|||
|
||||
SimpleTest.waitForFocus(runTests, window);
|
||||
|
||||
var winUtils = SpecialPowers.getDOMWindowUtils(window);
|
||||
// grab refresh driver
|
||||
winUtils.advanceTimeAndRefresh(100);
|
||||
|
||||
var gScrollableElement = document.getElementById("scrollable");
|
||||
var gScrolledElement = document.getElementById("scrolled");
|
||||
var gSpacerForBodyElement = document.getElementById("spacerForBody");
|
||||
|
@ -65,6 +69,8 @@ function ok()
|
|||
|
||||
function hitEventLoop(aFunc, aTimes)
|
||||
{
|
||||
winUtils.advanceTimeAndRefresh(100);
|
||||
|
||||
if (--aTimes) {
|
||||
setTimeout(hitEventLoop, 0, aFunc, aTimes);
|
||||
} else {
|
||||
|
@ -882,6 +888,7 @@ function doTestScroll(aSettings, aCallback)
|
|||
if (currentTest.cleanup) {
|
||||
currentTest.cleanup();
|
||||
}
|
||||
winUtils.advanceTimeAndRefresh(100);
|
||||
doNextTest();
|
||||
}, 10);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче