| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test that the overlay play button respects the controls attribute
</title> | 4 <title>Test that the overlay play button respects the controls attribute
</title> |
| 5 <script src="media-controls.js"></script> | 5 <script src="media-controls.js"></script> |
| 6 <script src="media-file.js"></script> | 6 <script src="media-file.js"></script> |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
| 7 <script src="video-test.js"></script> | 9 <script src="video-test.js"></script> |
| 8 <script> | 10 <script> |
| 9 function start() | 11 function start() |
| 10 { | 12 { |
| 11 window.internals.settings.setMediaControlsOverlayPlayButtonEnabl
ed(true); | 13 window.internals.settings.setMediaControlsOverlayPlayButtonEnabl
ed(true); |
| 12 | 14 |
| 13 // Add element dynamically, since otherwise the controls are cre
ated, but | 15 // Add element dynamically, since otherwise the controls are cre
ated, but |
| 14 // hidden, before the setting is set, causing the setting to be
ignored. | 16 // hidden, before the setting is set, causing the setting to be
ignored. |
| 15 addVideoElement(); | 17 addVideoElement(); |
| 16 | 18 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 testExpected('getComputedStyle(button).display', 'flex'); | 73 testExpected('getComputedStyle(button).display', 'flex'); |
| 72 | 74 |
| 73 endTest(); | 75 endTest(); |
| 74 } | 76 } |
| 75 </script> | 77 </script> |
| 76 </head> | 78 </head> |
| 77 <body onload="start()"> | 79 <body onload="start()"> |
| 78 <p>Test that the overlay play button respects the controls attribute</p> | 80 <p>Test that the overlay play button respects the controls attribute</p> |
| 79 </body> | 81 </body> |
| 80 </html> | 82 </html> |
| OLD | NEW |