Bug 1376382, key event handling is asynchronous, try to fix test to be more async too, r=masayuki

This commit is contained in:
Olli Pettay 2017-07-08 17:23:08 +03:00
parent 7076377b5e
commit e0ed9babb5

View File

@ -44,12 +44,12 @@ SimpleTest.waitForFocus(function() {
// page to scroll down
synthesizeKey("a", {}, win);
requestAnimationFrame(function() {
setTimeout(function() {
requestAnimationFrame(function() {
isnot(win.scrollY, 0, "Page is scrolled down again");
win.close();
SimpleTest.finish();
}, 0);
});
});
}, 0);
}, 0);