Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Unified Diff: LayoutTests/media/controls-after-unload.html

Issue 190333002: Reset media controls when load() is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/controls-after-unload-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7a174e35ac8845e15dbe5cc00306ff3bd96de1e7
--- /dev/null
+++ b/LayoutTests/media/controls-after-unload.html
@@ -0,0 +1,35 @@
+<!doctype html>
+<html>
+ <head>
+ <title>controls after unload</title>
+ <script src=media-file.js></script>
+ </head>
+ <body>
+ <video controls></video>
+ <script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ var video = document.querySelector("video");
+ video.src = findMediaFile("video", "content/test");
+ // Get the video into a playing state at currentTime > 0.
+ video.autoplay = true;
+ video.addEventListener("playing", function()
+ {
+ video.currentTime = 3;
+ video.addEventListener("seeked", function()
+ {
+ // Remove src and reload. The controls should reset and not
+ // show a playing state or currentTime > 0.
+ video.removeAttribute("src");
+ video.load();
+ video.addEventListener("emptied", function()
+ {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ });
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/controls-after-unload-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698