| 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>
|
|
|