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/media-volume-slider-rendered-normal.html

Issue 14195011: Removed WONTFIX tests (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/media/media-volume-slider-rendered-normal.html
diff --git a/LayoutTests/media/media-volume-slider-rendered-normal.html b/LayoutTests/media/media-volume-slider-rendered-normal.html
deleted file mode 100644
index d997c06872da35dc4b72aa47390bfaebd0f492df..0000000000000000000000000000000000000000
--- a/LayoutTests/media/media-volume-slider-rendered-normal.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html>
-<head>
- <title>Test rendering of volume slider of video tag</title>
- <script src=media-file.js></script>
- <script src=media-controls.js></script>
- <script src=video-test.js></script>
- <script>
- var video;
- var panel;
- var threshold = 2;
-
- var muteButtonCoordinates;
- var volumeSliderCoordinates;
-
- var volumeSliderElement;
- var muteButtonElement;
-
- function init()
- {
- video = document.getElementsByTagName("video")[0];
- video.src = findMediaFile("video", "content/test");
- }
-
- function test()
- {
- if (window.eventSender) {
- try {
- muteButtonCoordinates = mediaControlsButtonCoordinates(video, "mute-button");
- volumeSliderCoordinates = mediaControlsButtonCoordinates(video, "volume-slider-container");
- } catch (exception) {
- testRunner.notifyDone();
- return;
- }
- }
-
- panel = mediaControlsElement(internals.shadowRoot(video).firstChild, "-webkit-media-controls-panel");
- volumeSliderElement = mediaControlsElement(internals.shadowRoot(video).firstChild, "-webkit-media-controls-volume-slider-container");
- muteButtonElement = mediaControlsElement(internals.shadowRoot(video).firstChild, "-webkit-media-controls-mute-button");
-
- // Ensure paint without controls.
- video.controls = false;
- document.body.offsetTop;
-
- // Ensure (re)paint with controls displayed.
- video.controls = true;
- document.body.offsetTop;
-
- // Move the mouse back over the mute button.
- eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoordinates[1]);
-
- // Test that the left offset of both controls is equal.
- consoleWrite("");
- consoleWrite("** The volume slider should have almost the same left offset as the mute button **");
- testExpected("volumeSliderElement.offsetLeft >= muteButtonElement.offsetLeft - threshold", true);
- testExpected("volumeSliderElement.offsetLeft <= muteButtonElement.offsetLeft + threshold", true);
-
- consoleWrite("");
- consoleWrite("** The volume slider should be on top of the mute button **");
- testExpected("volumeSliderElement.offsetTop < muteButtonElement.offsetTop", true);
-
- testRunner.notifyDone();
- }
- </script>
-</head>
-<body onload="init()">
- Tests that the video controls are properly rendered when the display none is set and unset.<br>
-
- <video oncanplaythrough="test()" controls preload="true"></video>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698