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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-controls-show-on-focus.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 <title>Test visibiblity of controls when focusing of &lt;video></title> 3 <title>Test visibiblity of controls when focusing of &lt;video></title>
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
5 (Please avoid writing new tests using video-test.js) --> 5 (Please avoid writing new tests using video-test.js) -->
6 <script src=video-test.js></script> 6 <script src=video-test.js></script>
7 <script src=media-controls.js></script> 7 <script src=media-controls.js></script>
8 <p> 8 <p>
9 Test that video controls re-appear when the media (&lt;video>) element is focuse d. 9 Test that video controls re-appear when the media (&lt;video>) element is focuse d.
10 </p> 10 </p>
11 <video controls autoplay src="content/test.ogv"></video> 11 <video controls autoplay src="content/test.ogv"></video>
12 <script> 12 <script>
13 var controls; 13 var controls;
14 var video = document.querySelector("video"); 14 var video = document.querySelector("video");
(...skipping 10 matching lines...) Expand all
25 testExpected("getComputedStyle(controls).opacity", 1); 25 testExpected("getComputedStyle(controls).opacity", 1);
26 26
27 // We fade out when focus is lost, so the opacity is still 1 27 // We fade out when focus is lost, so the opacity is still 1
28 video.blur(); 28 video.blur();
29 testExpected("getComputedStyle(controls).opacity", 1); 29 testExpected("getComputedStyle(controls).opacity", 1);
30 30
31 endTest(); 31 endTest();
32 }, video); 32 }, video);
33 }); 33 });
34 </script> 34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698