OLD | NEW |
1 <html> | 1 <html> |
2 <a id='link' href="javascript:document.querySelector('embed').webkitRequestFullS
creen()">go | 2 <a id='link' href="javascript:document.querySelector('embed').webkitRequestFullS
creen()">go |
3 fullscreen</a> | 3 fullscreen</a> |
4 <p> | 4 <p> |
5 There should only be one ALERT. If there were two, the plugin was reloaded | 5 There should only be one ALERT. If there were two, the plugin was reloaded |
6 during the transition to fullscreen. | 6 during the transition to fullscreen. |
7 </p> | 7 </p> |
8 <embed type="application/x-blink-test-plugin"></embed> | 8 <embed type="application/x-blink-test-plugin"></embed> |
9 | 9 |
10 <script> | 10 <script> |
11 if (window.testRunner) { | 11 if (window.testRunner) { |
12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 | 14 |
15 var plugin = document.querySelector('embed'); | 15 var plugin = document.querySelector('embed'); |
16 plugin.addEventListener('webkitfullscreenchange', function () { | 16 plugin.addEventListener('webkitfullscreenchange', function () { |
17 internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(); | 17 internals.updateStyleAndLayoutIgnorePendingStylesheetsAndRunPostLayoutTa
sks(); |
18 testRunner.notifyDone(); | 18 testRunner.notifyDone(); |
19 }) | 19 }) |
20 document.addEventListener('keydown', function () { | 20 document.addEventListener('keydown', function () { |
21 plugin.webkitRequestFullScreen(); | 21 plugin.webkitRequestFullScreen(); |
22 }) | 22 }) |
23 eventSender.keyDown('a') | 23 eventSender.keyDown('a') |
24 } | 24 } |
25 </script> | 25 </script> |
26 </html> | 26 </html> |
OLD | NEW |