OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>media controls volume slider keyboard navigation</title> | 4 <title>media controls volume slider keyboard navigation</title> |
5 <script src="media-file.js"></script> | 5 <script src="media-file.js"></script> |
6 <script src="media-controls.js"></script> | 6 <script src="media-controls.js"></script> |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
7 <script src="video-test.js"></script> | 9 <script src="video-test.js"></script> |
8 </head> | 10 </head> |
9 <body> | 11 <body> |
10 <audio controls></audio> | 12 <audio controls></audio> |
11 <script> | 13 <script> |
12 findMediaElement(); | 14 findMediaElement(); |
13 audio.src = findMediaFile("audio", "content/test"); | 15 audio.src = findMediaFile("audio", "content/test"); |
14 testExpected("audio.volume", 1); | 16 testExpected("audio.volume", 1); |
15 waitForEvent("loadedmetadata", function() | 17 waitForEvent("loadedmetadata", function() |
16 { | 18 { |
(...skipping 15 matching lines...) Expand all Loading... |
32 | 34 |
33 // 'End' sets maximum volume (1). | 35 // 'End' sets maximum volume (1). |
34 eventSender.keyDown('end'); | 36 eventSender.keyDown('end'); |
35 testExpected("audio.volume", 1); | 37 testExpected("audio.volume", 1); |
36 | 38 |
37 waitForEventAndEnd("volumechange"); | 39 waitForEventAndEnd("volumechange"); |
38 }); | 40 }); |
39 </script> | 41 </script> |
40 </body> | 42 </body> |
41 </html> | 43 </html> |
OLD | NEW |