Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head></head> | |
|
philipj_slow
2014/09/11 14:38:26
You don't need an empty <head>. If you like, don't
amogh.bihani
2014/09/12 11:02:23
Ummm... I was advised by srirama.m@ to add the <ht
philipj_slow
2014/09/16 12:27:15
In the style of an existing test is OK. I happen t
| |
| 4 <body> | |
| 5 <video controls mediaGroup="group"></video> | |
| 6 <video controls mediaGroup="group"></video> | |
| 7 <script src=media-file.js></script> | |
| 8 <script src=video-test.js></script> | |
| 9 <script> | |
| 10 videos = document.getElementsByTagName('video'); | |
| 11 video = videos[0]; | |
| 12 video2 = videos[1]; | |
| 13 controller = video.controller; | |
| 14 | |
| 15 var src = findMediaFile("video", "content/test"); | |
| 16 video.src = src + "#t=2"; | |
| 17 video2.src = src; | |
| 18 testExpected("video.currentTime", 0); | |
| 19 testExpected("video2.currentTime", 0); | |
| 20 | |
| 21 controller.addEventListener('loadedmetadata', function() | |
| 22 { | |
| 23 testExpected("video.currentTime", 2); | |
| 24 testExpected("video2.currentTime", 2); | |
| 25 testExpected("controller.currentTime", 2); | |
| 26 }); | |
| 27 | |
| 28 waitForEvent('seeked'); | |
|
philipj_slow
2014/09/11 14:38:26
This test is timing out, should use waitForEventAn
amogh.bihani
2014/09/12 11:02:23
Done.
| |
| 29 </script> | |
| 30 <p>Test currentTime of media controller when one of the element has init ial start time greater than 0.</p> | |
|
philipj_slow
2014/09/11 14:38:28
Please move this description to the top, or <title
amogh.bihani
2014/09/12 11:02:23
Done.
| |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |