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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src=video-test.js></script>
5 </head>
6 <body>
7 <video id="video"></video>
8 <p>Verify there is a 'durationchange' event just before 'ended' event if the initially reported duration exceeds the actual data.</p>
9 <script>
10 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
11 waitForEventAndEnd('ended');
12 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.
13 video.src = "content/truncated.webm";
14 video.play();
15 </script>
16 </body>
17 </html>
OLDNEW
« 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