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

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

Issue 17395006: Fix LayoutTests that assume canplay, playing, and canplaythrough will only fire once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix event-attributes expectations. Created 7 years, 6 months 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
« no previous file with comments | « LayoutTests/media/video-duration-known-after-eos.html ('k') | LayoutTests/media/video-playbackrate.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2048725e951f358cb0c426be6fecaa60c12ed917..653309e1e71a08147f68a34a0213724ad9cb8284 100644
--- a/LayoutTests/media/video-frame-size-change.html
+++ b/LayoutTests/media/video-frame-size-change.html
@@ -30,6 +30,8 @@
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);
@@ -40,6 +42,9 @@
return;
}
+ video.removeEventListener('playing', onplaying);
+ video_fixed_size.removeEventListener('playing', onplaying);
+
// Make sure both videos play for a bit.
function ontimeupdate(e) {
if (e.target.currentTime > 1.0) {
« no previous file with comments | « LayoutTests/media/video-duration-known-after-eos.html ('k') | LayoutTests/media/video-playbackrate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698