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

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: Created 6 years, 3 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 de660722c64f4bcb8a637124decd35b4ec134b11..9699ce453b0f172500123db561b88a02e2dce368 100644
--- a/LayoutTests/fast/html/marquee-scrollamount.html
+++ b/LayoutTests/fast/html/marquee-scrollamount.html
@@ -8,12 +8,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