OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <title>Test focus movement when controls fade out with a button focused</title> | 3 <title>Test focus movement when controls fade out with a button focused</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 focus moves to the <body>/document when controls fade out with a bu
tton focused. | 9 Test that focus moves to the <body>/document when controls fade out with a bu
tton focused. |
10 </p> | 10 </p> |
11 <video controls src="content/test.ogv"></video> | 11 <video controls 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 14 matching lines...) Expand all Loading... |
29 testExpected("getComputedStyle(controls).opacity", 0); | 29 testExpected("getComputedStyle(controls).opacity", 0); |
30 | 30 |
31 testExpected("document.activeElement", document.body); | 31 testExpected("document.activeElement", document.body); |
32 | 32 |
33 consoleWrite(""); | 33 consoleWrite(""); |
34 endTest(); | 34 endTest(); |
35 }, video); | 35 }, video); |
36 }); | 36 }); |
37 | 37 |
38 </script> | 38 </script> |
OLD | NEW |