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

Unified Diff: LayoutTests/css3/flexbox/repaint.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
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | LayoutTests/resources/js-test.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/repaint.html
diff --git a/LayoutTests/css3/flexbox/repaint.html b/LayoutTests/css3/flexbox/repaint.html
index aac82b84a8ab3cb861c558ea9841aaafd04af26b..748b539c6f18ae3f38da5366f9b4244da331dde6 100644
--- a/LayoutTests/css3/flexbox/repaint.html
+++ b/LayoutTests/css3/flexbox/repaint.html
@@ -33,7 +33,7 @@ function step(count) {
setFlex("content", animationPercentage, 1, 5);
if (!count)
- setTimeout(step.bind(null, 1));
+ requestAnimationFrame(step.bind(null, 1));
else if (window.testRunner) {
finishRepaintTest();
}
@@ -44,7 +44,7 @@ window.onload = runRepaintTest;
function repaintTest() {
window.startTime = Date.now();
- setTimeout(step.bind(null, 0), 0);
+ requestAnimationFrame(step.bind(null, 0));
}
</script>
</head>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | LayoutTests/resources/js-test.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698