OLD | NEW |
---|---|
(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> | |
OLD | NEW |