Chromium Code Reviews| Index: LayoutTests/media/track/track-cue-rendering-after-controls-added.html |
| diff --git a/LayoutTests/media/track/track-cue-rendering-after-controls-added.html b/LayoutTests/media/track/track-cue-rendering-after-controls-added.html |
| index c465d0d2809465dc0519f692159ed853a2cf4fd9..4ca57d079c02113e39ee0f5e26f98a287bd16b84 100644 |
| --- a/LayoutTests/media/track/track-cue-rendering-after-controls-added.html |
| +++ b/LayoutTests/media/track/track-cue-rendering-after-controls-added.html |
| @@ -22,9 +22,14 @@ track.mode = "showing"; |
| video.onloadeddata = function() { |
| testRunner.layoutAndPaintAsyncThen(function() { |
| - // Add the controls. The cue should move to avoid overlap. |
| + // Add the controls. The cue should move to avoid overlap. Defer this |
| + // until the controls resize. |
| video.controls = true; |
| - testRunner.notifyDone(); |
| + // Wait for the relayout event to happen. |
| + setTimeout(function() |
|
philipj_slow
2015/08/05 08:41:05
This is likely to be flaky. https://docs.google.co
liberato (no reviews please)
2015/08/05 16:36:40
thanks! that's a great reference.
|
| + { |
| + testRunner.notifyDone(); |
| + }, 0); |
| }); |
| }; |
| </script> |