OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body style="-webkit-columns: 30;"> | 3 <body style="-webkit-columns: 30;"> |
4 PASS. | 4 PASS. |
5 <bdi> | 5 <bdi> |
6 <span style="margin-top: 1em;">WebKit didn't crash. | 6 <span style="margin-top: 1em;">WebKit didn't crash. |
7 <script src="full-screen-test.js"></script> | 7 <script src="full-screen-test.js"></script> |
8 <script> | 8 <script> |
9 if (Element.prototype.webkitRequestFullScreen == undefined) { | 9 var fullscreenChanged = function(event) |
10 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined
"); | 10 { |
11 endTest(); | 11 callback(event) |
12 } else { | 12 }; |
13 var fullscreenChanged = function(event) | 13 waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged); |
14 { | 14 var span = document.getElementsByTagName('span')[0]; |
15 callback(event) | 15 var spanEnteredFullScreen = function() { |
16 }; | 16 runWithKeyDown(function() { document.documentElement.webkitRequestFullSc
reen(); }); |
17 waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged); | 17 setTimeout("endTest()", 0); |
18 var span = document.getElementsByTagName('span')[0]; | 18 }; |
19 var spanEnteredFullScreen = function() { | |
20 runWithKeyDown(function() { document.documentElement.webkitRequestFu
llScreen(); }); | |
21 setTimeout("endTest()", 0); | |
22 }; | |
23 | 19 |
24 callback = spanEnteredFullScreen; | 20 callback = spanEnteredFullScreen; |
25 runWithKeyDown(function() { span.webkitRequestFullScreen(); }); | 21 runWithKeyDown(function() { span.webkitRequestFullScreen(); }); |
26 } | |
27 </script> | 22 </script> |
28 </body> | 23 </body> |
29 </html> | 24 </html> |
OLD | NEW |