| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <title>Test visibiblity of controls when focusing of <video></title> | 3 <title>Test visibiblity of controls when focusing of <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 (<video>) element is focuse
d. | 9 Test that video controls re-appear when the media (<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 Loading... |
| 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> |
| OLD | NEW |