Index: LayoutTests/media/video-frame-size-change.html |
diff --git a/LayoutTests/media/video-frame-size-change.html b/LayoutTests/media/video-frame-size-change.html |
index ae4513f62176f8c276200486bebddd3a86d1b76f..99dfa495f835bbe7060ed761ddcecae43c88bcc9 100644 |
--- a/LayoutTests/media/video-frame-size-change.html |
+++ b/LayoutTests/media/video-frame-size-change.html |
@@ -5,7 +5,7 @@ |
as opposed to changing the size of the element.</p> |
<video width="320"></video> |
<video></video> |
- |
+ <script src="../resources/run-after-display.js"></script> |
<script> |
if (window.testRunner) { |
testRunner.waitUntilDone(); |
@@ -49,15 +49,12 @@ |
} |
} |
- // Make sure we render the first frame. |
- if (window.testRunner) { |
- testRunner.display(); |
- } |
- |
- video.play(); |
- video_fixed_size.play(); |
- video.removeEventListener('canplay', oncanplay); |
- video_fixed_size.removeEventListener('canplay', oncanplay); |
+ runAfterDisplay(function() { |
scherkus (not reviewing)
2014/03/19 20:20:35
some notes on this test as I was the one who wrote
enne (OOO)
2014/03/19 20:22:34
The frame size changes happen during painting and
|
+ video.play(); |
+ video_fixed_size.play(); |
+ video.removeEventListener('canplay', oncanplay); |
+ video_fixed_size.removeEventListener('canplay', oncanplay); |
+ }); |
}; |
video.addEventListener('canplay', oncanplay); |
video_fixed_size.addEventListener('canplay', oncanplay); |