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

Unified Diff: LayoutTests/media/video-durationchange-on-ended.html

Issue 790153002: Add test to verify durationchange event if the actual duration is wrong (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reduced test file truncated.wemb size Created 6 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-durationchange-on-ended.html
diff --git a/LayoutTests/media/video-durationchange-on-ended.html b/LayoutTests/media/video-durationchange-on-ended.html
new file mode 100644
index 0000000000000000000000000000000000000000..7cccd7a7b38c325e379cfc6843cf96e79a1731d3
--- /dev/null
+++ b/LayoutTests/media/video-durationchange-on-ended.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script src=video-test.js></script>
+ </head>
+ <body>
+ <video id="video"></video>
+ <p>Verify there is a 'durationchange' event just before 'ended' event if the initially reported duration exceeds the actual data.</p>
+ <script>
+ waitForEvent('durationchange');
philipj_slow 2014/12/10 22:59:14 Put these in the end, that seems more obvious and
Srirama 2014/12/11 06:43:57 Moved the events down. Verified duration change wi
+ waitForEventAndEnd('ended');
+ video = document.getElementById('video');
philipj_slow 2014/12/10 22:59:14 This is OK, but you can just document.createElemen
Srirama 2014/12/11 06:43:57 Done.
+ video.src = "content/truncated.webm";
+ video.play();
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/media/content/truncated.webm ('k') | LayoutTests/media/video-durationchange-on-ended-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698