| 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> | |
| 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 // Get the video into a playing state at currentTime > 0. | |
| 16 video.autoplay = true; | |
| 17 video.addEventListener("playing", function() | |
| 18 { | |
| 19 video.currentTime = 3; | |
| 20 video.addEventListener("seeked", function() | |
| 21 { | |
| 22 // Remove src and reload. The controls should reset and not | |
| 23 // show a playing state or currentTime > 0. | |
| 24 video.removeAttribute("src"); | |
| 25 video.load(); | |
| 26 video.addEventListener("emptied", function() | |
| 27 { | |
| 28 if (window.testRunner) | |
| 29 testRunner.notifyDone(); | |
| 30 }); | |
| 31 }); | |
| 32 }); | |
| 33 </script> | |
| 34 </body> | |
| 35 </html> | |
| OLD | NEW |