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

Side by Side Diff: LayoutTests/media/controls-cast-button.html

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: manual rebaseline. Created 5 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>media controls cast button</title> 4 <title>media controls cast button</title>
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="media-file.js"></script> 7 <script src="media-file.js"></script>
8 <script src="media-controls.js"></script> 8 <script src="media-controls.js"></script>
9 <script src="video-test.js"></script> 9 <script src="video-test.js"></script>
10 </head> 10 </head>
11 <body> 11 <body>
12 <video controls></video> 12 <video controls width=500></video>
13 <script> 13 <script>
14 function castButton(element) 14 function castButton(element)
15 { 15 {
16 var controlID = "-internal-media-controls-cast-button"; 16 var controlID = "-internal-media-controls-cast-button";
17 var button = mediaControlsElement(window.internals.shadowRoot(elemen t).firstChild, controlID); 17 var button = mediaControlsElement(window.internals.shadowRoot(elemen t).firstChild, controlID);
18 if (!button) 18 if (!button)
19 throw "Failed to find cast button"; 19 throw "Failed to find cast button";
20 return button; 20 return button;
21 } 21 }
22 function overlayCastButton(element) 22 function overlayCastButton(element)
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Remove cast device - cast button should go away 77 // Remove cast device - cast button should go away
78 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false ); 78 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false );
79 assert_equals(button.style.display, "none", "button should not b e visible after cast device goes away"); 79 assert_equals(button.style.display, "none", "button should not b e visible after cast device goes away");
80 t.done(); 80 t.done();
81 }); 81 });
82 }); 82 });
83 </script> 83 </script>
84 </body> 84 </body>
85 </html> 85 </html>
86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698