Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>controls after unload</title> | |
| 5 <script src=media-file.js></script> | |
| 6 </head> | |
| 7 <body onload="test()"> | |
|
acolwell GONE FROM CHROMIUM
2014/03/07 17:45:04
nit: Why is this needed? It doesn't look like test
philipj_slow
2014/03/07 18:39:38
Oops. Copypasta.
| |
| 8 <video controls></video> | |
| 9 <script> | |
| 10 if (window.testRunner) | |
| 11 testRunner.waitUntilDone(); | |
| 12 | |
| 13 var video = document.querySelector("video"); | |
| 14 video.src = findMediaFile("video", "content/test"); | |
| 15 video.autoplay = true; | |
| 16 video.addEventListener("playing", function() | |
| 17 { | |
| 18 video.currentTime = 3; | |
|
acolwell GONE FROM CHROMIUM
2014/03/07 17:45:04
nit: Add a comment here and perhaps above the remo
philipj_slow
2014/03/07 18:39:38
Done.
| |
| 19 video.addEventListener("seeked", function() | |
| 20 { | |
| 21 video.removeAttribute("src"); | |
| 22 video.load(); | |
| 23 video.addEventListener("emptied", function() | |
| 24 { | |
| 25 if (window.testRunner) | |
| 26 testRunner.notifyDone(); | |
| 27 }); | |
| 28 }); | |
| 29 }); | |
| 30 </script> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |