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

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

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 9 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
10 (Please avoid writing new tests using video-test.js) --> 10 (Please avoid writing new tests using video-test.js) -->
11 <script src="video-test.js"></script> 11 <script src="video-test.js"></script>
12 </head> 12 </head>
13 <body> 13 <body>
14 <video></video> 14 <video></video>
15 <script> 15 <script>
16 function overlayCastButton(element) 16 function overlayCastButton(element)
17 { 17 {
18 var controlID = "-internal-media-controls-overlay-cast-button"; 18 var controlID = "-internal-media-controls-overlay-cast-button";
19 var button = mediaControlsElement(window.internals.shadowRoot(elemen t).firstChild, controlID); 19 var button = mediaControlsElement(window.internals.shadowRoot(elemen t).firstChild, controlID);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Remove cast device - cast button should go away 56 // Remove cast device - cast button should go away
57 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false ); 57 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false );
58 assert_equals(button.style.display, "none", "button should not b e visible after cast device goes away"); 58 assert_equals(button.style.display, "none", "button should not b e visible after cast device goes away");
59 t.done(); 59 t.done();
60 }) 60 })
61 }); 61 });
62 </script> 62 </script>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698