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

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: 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=media-file.js></script>
philipj_slow 2014/12/10 14:42:13 media-file.js probably isn't needed.
Srirama 2014/12/10 14:45:21 Acknowledged.
5 <script src=video-test.js></script>
6 <script>
7 function onWindowLoad(e)
8 {
9 video = document.getElementById('video');
philipj_slow 2014/12/10 14:42:13 You can simplify the test a bit by moving this scr
Srirama 2014/12/10 14:45:20 I have followed the html structure and put all the
philipj_slow 2014/12/10 15:05:41 It's valid to have scripts in body, and in this ca
10 video.src = "content/truncated.webm";
11 video.play();
12 }
13
14 window.addEventListener('load', onWindowLoad, false);
15 waitForEvent('durationchange');
16 waitForEventAndEnd('ended');
17 </script>
18 </head>
19 <body>
20 <video id="video"></video>
21 <p>Verify there is a 'durationchange' event just before 'ended' event if the initially reported duration exceeds the actual data.</p>
22 </body>
23 </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