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

Side by Side Diff: LayoutTests/media/media-volume-slider-rendered-below.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <title>Test that volume slider is rendered below. </title>
4
5 <head>
6
7 <script src=video-test.js></script>
8 <script src=media-file.js></script>
9 <script src=media-controls.js></script>
10
11 <script>
12 var audio;
13
14 var muteButtonCoordinates;
15 var volumeSliderCoordinates;
16
17 function test()
18 {
19 consoleWrite("** Test that the volume slider is rendered correctly i f the controls are near the top of the page **");
20
21 if (window.eventSender) {
22 consoleWrite("");
23 consoleWrite("** Move mouse on top of the mute button **");
24
25 try {
26 muteButtonCoordinates = mediaControlsButtonCoordinates(audio , "mute-button");
27 } catch (exception) {
28 consoleWrite("ERROR: unable to get controls coordinates.");
29
30 failTest();
31 return;
32 }
33
34 eventSender.mouseMoveTo(muteButtonCoordinates[0], muteButtonCoor dinates[1]);
35 }
36
37 consoleWrite("");
38 consoleWrite("** Ensure layout is done after mouse move **");
39 document.body.offsetTop;
40 volumeSliderCoordinates = mediaControlsButtonCoordinates(audio, "vol ume-slider-container");
41
42 consoleWrite("");
43 consoleWrite("** The volume slider should not be positioned outside the page **");
44 testExpected("volumeSliderCoordinates[0] >= 0 && volumeSliderCoordin ates[1] >= 0", true);
45
46 endTest();
47 }
48
49 function initialize()
50 {
51 audio = document.getElementsByTagName("audio")[0];
52 audio.src = findMediaFile("audio", "content/test");
53 }
54 </script>
55 </head>
56
57 <body onload="initialize();">
58 <audio controls oncanplaythrough="test();"></audio>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698