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

Side by Side Diff: LayoutTests/media/video-controls-toggling.html

Issue 411833006: Use the mediaControlsButton() helper more in media tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « LayoutTests/media/media-controls-invalid-url.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/media/media-controls-invalid-url.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698