| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src=media-file.js></script> | 4 <script src=media-file.js></script> |
| 5 <script src=video-test.js></script> | 5 <script src=video-test.js></script> |
| 6 <script src=media-controls.js></script> | 6 <script src=media-controls.js></script> |
| 7 <script> | 7 <script> |
| 8 var video; | 8 var video; |
| 9 | 9 |
| 10 function init() | 10 function init() |
| 11 { | 11 { |
| 12 video = document.getElementsByTagName("video")[0]; | 12 video = document.getElementsByTagName("video")[0]; |
| 13 video.src = findMediaFile("video", "content/test"); | 13 video.src = findMediaFile("video", "content/test"); |
| 14 | 14 |
| 15 waitForEvent("canplaythrough", start); | 15 waitForEventOnce("canplaythrough", start); |
| 16 waitForEvent("seeked", seeked); | 16 waitForEvent("seeked", seeked); |
| 17 waitForEvent("error", error); | 17 waitForEvent("error", error); |
| 18 } | 18 } |
| 19 | 19 |
| 20 function getTimeLineValue() | 20 function getTimeLineValue() |
| 21 { | 21 { |
| 22 var timeline; | 22 var timeline; |
| 23 var shadowRoot = internals.shadowRoot(video); | 23 var shadowRoot = internals.shadowRoot(video); |
| 24 | 24 |
| 25 timeline = mediaControlsElement(shadowRoot.firstChild.firstChild
, '-webkit-media-controls-timeline'); | 25 timeline = mediaControlsElement(shadowRoot.firstChild.firstChild
, '-webkit-media-controls-timeline'); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 </script> | 69 </script> |
| 70 </head> | 70 </head> |
| 71 <body onload="init()"> | 71 <body onload="init()"> |
| 72 <p>This tests that media element controls are reset to their default sta
te when the src is changed to an invalid url.</p> | 72 <p>This tests that media element controls are reset to their default sta
te when the src is changed to an invalid url.</p> |
| 73 <p>This test only runs in DRT!</p> | 73 <p>This test only runs in DRT!</p> |
| 74 <video controls></video> | 74 <video controls></video> |
| 75 <div id="console"></div> | 75 <div id="console"></div> |
| 76 </body> | 76 </body> |
| 77 </html> | 77 </html> |
| OLD | NEW |