Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: LayoutTests/fast/html/marquee-scrollamount.html

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/html/marquee-scrollamount.html
diff --git a/LayoutTests/fast/html/marquee-scrollamount.html b/LayoutTests/fast/html/marquee-scrollamount.html
index 1f9dee8e564ca472690697ede53bf422db35af7e..12d7d6db271a8d66114da4ac8cf94636787a7fcc 100644
--- a/LayoutTests/fast/html/marquee-scrollamount.html
+++ b/LayoutTests/fast/html/marquee-scrollamount.html
@@ -11,12 +11,12 @@
marquee.width = "100px";
marquee.scrollDelay = 0;
document.body.appendChild(marquee);
- setTimeout(function() {
+ requestAnimationFrame(function() {
marquee.scrollAmount = 0;
if (window.testRunner) {
setTimeout(function() {
testRunner.notifyDone();
}, 55);
}
- }, 0);
+ });
</script>

Powered by Google App Engine
This is Rietveld 408576698