OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Test rendering of volume slider of video tag</title> | 3 <title>Test rendering of volume slider of video tag</title> |
4 <script src=media-file.js></script> | 4 <script src=media-file.js></script> |
5 <script src=media-controls.js></script> | 5 <script src=media-controls.js></script> |
6 <script src=video-test.js></script> | 6 <script src=video-test.js></script> |
7 <script> | 7 <script> |
8 var video; | 8 var video; |
9 var panel; | 9 var panel; |
10 var muteButtonCoordinates; | 10 var muteButtonCoordinates; |
11 | 11 |
12 function init() | 12 function init() |
13 { | 13 { |
14 video = document.getElementsByTagName("video")[0]; | 14 video = document.getElementsByTagName("video")[0]; |
15 video.src = findMediaFile("video", "content/test"); | 15 video.src = findMediaFile("video", "content/test"); |
16 | 16 |
17 consoleWrite(""); | 17 consoleWrite(""); |
18 consoleWrite("** Playing the video **"); | 18 consoleWrite("** Playing the video **"); |
19 run("video.play()"); | 19 run("video.play()"); |
20 } | 20 } |
21 | 21 |
22 function test() | 22 function test() |
23 { | 23 { |
24 panel = mediaControlsElement(internals.shadowRoot(video).firstChild,
"-webkit-media-controls-panel"); | 24 panel = mediaControlsButton(video, "panel"); |
25 | 25 |
26 if (window.eventSender) { | 26 if (window.eventSender) { |
27 try { | 27 try { |
28 muteButtonCoordinates = mediaControlsButtonCoordinates(video
, "mute-button"); | 28 muteButtonCoordinates = mediaControlsButtonCoordinates(video
, "mute-button"); |
29 } catch (exception) { | 29 } catch (exception) { |
30 testRunner.notifyDone(); | 30 testRunner.notifyDone(); |
31 return; | 31 return; |
32 } | 32 } |
33 | 33 |
34 consoleWrite(""); | 34 consoleWrite(""); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 endTest(); | 77 endTest(); |
78 } | 78 } |
79 | 79 |
80 </script> | 80 </script> |
81 </head> | 81 </head> |
82 <body onload="init()"> | 82 <body onload="init()"> |
83 Tests that showing / hiding video controls uses the sets the display:none pr
operty<br> | 83 Tests that showing / hiding video controls uses the sets the display:none pr
operty<br> |
84 <video onplay="test()" controls></video> | 84 <video onplay="test()" controls></video> |
85 </body> | 85 </body> |
86 </html> | 86 </html> |
OLD | NEW |