Chromium Code Reviews| 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 653309e1e71a08147f68a34a0213724ad9cb8284..1ef1bf25bf4779689b5206f57eae3edf9740015c 100644 |
| --- a/LayoutTests/media/video-frame-size-change.html |
| +++ b/LayoutTests/media/video-frame-size-change.html |
| @@ -17,6 +17,18 @@ |
| video.src = "resources/frame_size_change.webm"; |
| video_fixed_size.src = "resources/frame_size_change.webm"; |
| + // Expect no resize event because the tag's size (the frames' |
| + // "natural size") doesn't change, only the internal resolution |
| + // does. Fail if this expectation is violated. |
| + video.addEventListener('resize', onresize); |
| + video_fixed_size.addEventListener('resize', onresize); |
| + function onresize() { |
|
acolwell GONE FROM CHROMIUM
2013/12/13 15:58:12
nit: { is supposed to be on the next line. Could y
Ami GONE FROM CHROMIUM
2013/12/13 17:48:43
Done.
|
| + document.body.appendChild(document.createTextNode('FAIL: unexpected resize')); |
| + if (window.testRunner) { |
| + testRunner.notifyDone(); |
| + } |
| + } |
| + |
| var canplayCount = 0; |
| function oncanplay() { |
| if (++canplayCount < 2) { |