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

Unified Diff: LayoutTests/platform/chromium/media/media-volume-slider-hit-test.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/media/media-volume-slider-hit-test.html
diff --git a/LayoutTests/platform/chromium/media/media-volume-slider-hit-test.html b/LayoutTests/platform/chromium/media/media-volume-slider-hit-test.html
deleted file mode 100644
index 36a773adce51c90ce2f5a0cdc398b69cdb7fa7f7..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/media/media-volume-slider-hit-test.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src=media-file.js></script>
-<script src="../../../fast/js/resources/js-test-pre.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>
-
-<script src="../../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698