mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1376382, key event handling is asynchronous, try to fix test to be more async too, r=masayuki
This commit is contained in:
parent
7076377b5e
commit
e0ed9babb5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user