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

Side by Side Diff: LayoutTests/media/controls-volume-slider-keynav.html

Issue 294963003: MediaVolumeSliderPart is not vertical (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added TC. Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/media/controls-volume-slider-keynav-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>media controls volume slider keyboard navigation</title>
5 <script src="media-file.js"></script>
6 <script src="media-controls.js"></script>
7 <script src="video-test.js"></script>
8 </head>
9 <body>
10 <audio controls></audio>
11 <script>
12 findMediaElement();
13 audio.src = findMediaFile("audio", "content/test");
14 testExpected("audio.volume", 1);
15 waitForEvent("loadedmetadata", function()
16 {
17 // Focus the volume slider.
18 var button = mediaControlsButton(audio, "volume-slider");
19 button.focus();
20
21 // 'Left' reduces volume.
22 eventSender.keyDown('leftArrow');
23 testExpected("audio.volume", 1, '<');
24
25 // 'Right' reduces volume (same step as 'Left', but opposite sig n).
26 eventSender.keyDown('rightArrow');
27 testExpected("audio.volume", 1);
28
29 // 'Home' sets minimum volume (0).
30 eventSender.keyDown('home');
31 testExpected("audio.volume", 0);
32
33 // 'End' sets maximum volume (1).
34 eventSender.keyDown('end');
35 testExpected("audio.volume", 1);
36
37 waitForEventAndEnd("volumechange");
38 });
39 </script>
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/controls-volume-slider-keynav-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698