| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 |  | 
| OLD | NEW | 
|---|