Chromium Code Reviews| Index: LayoutTests/media/controls-after-unload.html |
| diff --git a/LayoutTests/media/controls-after-unload.html b/LayoutTests/media/controls-after-unload.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dbb14bfc0d3945f278684df890bdcc20c1df4a6f |
| --- /dev/null |
| +++ b/LayoutTests/media/controls-after-unload.html |
| @@ -0,0 +1,32 @@ |
| +<!doctype html> |
| +<html> |
| + <head> |
| + <title>controls after unload</title> |
| + <script src=media-file.js></script> |
| + </head> |
| + <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.
|
| + <video controls></video> |
| + <script> |
| + if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + |
| + var video = document.querySelector("video"); |
| + video.src = findMediaFile("video", "content/test"); |
| + video.autoplay = true; |
| + video.addEventListener("playing", function() |
| + { |
| + 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.
|
| + video.addEventListener("seeked", function() |
| + { |
| + video.removeAttribute("src"); |
| + video.load(); |
| + video.addEventListener("emptied", function() |
| + { |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }); |
| + }); |
| + }); |
| + </script> |
| + </body> |
| +</html> |