Bug 854421 - Part 11: Use rAF instead of setTimeout in a test. r=roc

This commit is contained in:
Matt Woodrow 2014-05-29 09:45:23 +12:00
parent 573e2de8a7
commit a706976822

View File

@ -35,8 +35,8 @@ function runTests() {
scrollTopBefore = doc.body.scrollTop;
// send up arrow key event
sendKey("UP");
setTimeout("finish();", 20);
window.requestAnimationFrame(finish);
}
function finish() {