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

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

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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>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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698