Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: LayoutTests/media/video-frame-size-change.html

Issue 103913010: Add new "resize" event to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698