| 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()
|
| + {
|
| + testRunner.notifyDone();
|
| + }, 0);
|
| });
|
| };
|
| </script>
|
|
|