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

Unified Diff: LayoutTests/css3/flexbox/repaint.html

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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') | no next file with comments »
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..69ded646332a0a7df56cb958a0688db5898a2253 100644
--- a/LayoutTests/css3/flexbox/repaint.html
+++ b/LayoutTests/css3/flexbox/repaint.html
@@ -32,9 +32,10 @@ function step(count) {
var animationPercentage = count ? 1 : .9;
setFlex("content", animationPercentage, 1, 5);
- if (!count)
- setTimeout(step.bind(null, 1));
- else if (window.testRunner) {
+ if (!count) {
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(step.bind(null, 1), 1);
+ } else if (window.testRunner) {
finishRepaintTest();
}
}
@@ -44,7 +45,8 @@ window.onload = runRepaintTest;
function repaintTest() {
window.startTime = Date.now();
- setTimeout(step.bind(null, 0), 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setTimeout(step.bind(null, 0), 1);
}
</script>
</head>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698