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 |
philipj_slow
2015/07/08 10:31:51
Was this test flaky before as well, or what has ch
liberato (no reviews please)
2015/07/09 12:10:53
this wasn't flaky.
this change gives the schedule
|
+ // until the controls resize. |
video.controls = true; |
- testRunner.notifyDone(); |
+ // Wait for the relayout event to happen. |
+ setTimeout(function() |
+ { |
+ testRunner.notifyDone(); |
+ }, 0); |
}); |
}; |
</script> |