b=796980, fix content/events/test/window_wheel_default_action.html; r=ehsan,orange

This commit is contained in:
Vladimir Vukicevic 2012-10-02 12:35:49 -04:00
Родитель cfe1a7b7fb
Коммит 3f4b63a927
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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);
}