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

Unified Diff: LayoutTests/media/controls-volume-slider.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
Index: LayoutTests/media/controls-volume-slider.html
diff --git a/LayoutTests/media/controls-volume-slider.html b/LayoutTests/media/controls-volume-slider.html
new file mode 100644
index 0000000000000000000000000000000000000000..4bd7497e739bee737b04bdbc1028269e23e8a0c5
--- /dev/null
+++ b/LayoutTests/media/controls-volume-slider.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+ <head>
+ <title>media controls volume slider</title>
+ <script src="media-file.js"></script>
+ <script src="media-controls.js"></script>
+ <script src="video-test.js"></script>
+ </head>
+ <body>
+ <audio controls></audio>
+ <script>
+ findMediaElement();
+ audio.src = findMediaFile("audio", "content/test");
+ testExpected("audio.volume", 1);
+ waitForEvent("loadedmetadata", function()
+ {
+ // click the middle of the volume slider
+ var coords = mediaControlsButtonCoordinates(audio, "volume-slider");
+ eventSender.mouseMoveTo(coords[0], coords[1]);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+
+ testExpected("audio.volume", 0.4, '>');
+ testExpected("audio.volume", 0.6, '<');
+ waitForEventAndEnd("volumechange");
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/media/controls-mute-with-controller-expected.html ('k') | LayoutTests/media/controls-volume-slider-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698