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

Unified Diff: LayoutTests/media/media-volume-slider-hit-test.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/media-volume-slider-hit-test.html
diff --git a/LayoutTests/media/media-volume-slider-hit-test.html b/LayoutTests/media/media-volume-slider-hit-test.html
deleted file mode 100644
index 30801345919c3fb9522d7bf464571d11f130276d..0000000000000000000000000000000000000000
--- a/LayoutTests/media/media-volume-slider-hit-test.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=media-file.js></script>
-<script src="../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description">Clicking middle of volume slider should set the value to middle.</p>
-<div id="console"></div>
-<audio controls id="audio"></audio>
-<script>
-function clickSliderMiddle(input, offsetLeft) {
- var centerX = input.offsetLeft + input.offsetWidth / 2;
- var centerY = input.offsetTop + input.offsetHeight / 2;
- if (!window.eventSender)
- return;
- eventSender.mouseMoveTo(centerX, centerY);
- eventSender.mouseDown();
- eventSender.mouseUp();
-}
-
-function getElementByShadowPseudoIdInShadowRoot(shadowRoot, pseudoId) {
- var node = shadowRoot.firstChild;
- while (node) {
- if (internals.shadowPseudoId(node) === pseudoId)
- return node;
- node = node.nextSibling || node.firstChild;
- }
- return null;
-}
-
-var mediaElement = document.getElementById("audio");
-var root = internals.shadowRoot(mediaElement);
-var volumeSlider = getElementByShadowPseudoIdInShadowRoot(root, "-webkit-media-controls-volume-slider");
-volumeSlider.min = 0;
-volumeSlider.max = 10;
-volumeSlider.step = 1;
-clickSliderMiddle(volumeSlider);
-shouldBe('volumeSlider.value', '"5"');
-</script>
-
-</body>
-</html>
« no previous file with comments | « LayoutTests/media/controls-volume-slider-expected.txt ('k') | LayoutTests/media/media-volume-slider-hit-test-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698