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

Unified Diff: LayoutTests/media/controls-mute-with-controller.html

Issue 217103004: Ignore MediaController in the muted/volume controls logic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: repaint in updateVolume 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-mute-with-controller-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/controls-mute-with-controller.html
diff --git a/LayoutTests/media/controls-mute-with-controller.html b/LayoutTests/media/controls-mute-with-controller.html
new file mode 100644
index 0000000000000000000000000000000000000000..9bbc9795fed76b4c4dcb657fe1aa3c0f708fb422
--- /dev/null
+++ b/LayoutTests/media/controls-mute-with-controller.html
@@ -0,0 +1,35 @@
+<!doctype html>
+<html>
+ <head>
+ <title>media controls mute button with MediaController</title>
+ <script src="media-file.js"></script>
+ <script src="media-controls.js"></script>
+ </head>
+ <body>
+ <video controls mediagroup="x"></video>
+ <script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ var video = document.querySelector("video");
+ video.src = findMediaFile("video", "content/test");
+ video.addEventListener("loadeddata", function()
+ {
+ if (window.eventSender) {
+ // click the mute button
+ var coords = mediaControlsButtonCoordinates(video, "mute-button");
+ eventSender.mouseMoveTo(coords[0], coords[1]);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+
+ // wait for the volumechange event
+ video.addEventListener("volumechange", function()
+ {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ }
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/media/controls-mute-with-controller-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698