OLD | NEW |
1 <span><object><div>PASS</div></span> | 1 <span><object><div>PASS</div></span> |
2 <script src="full-screen-test.js"></script> | 2 <script src="full-screen-test.js"></script> |
3 <script> | 3 <script> |
4 if (Element.prototype.webkitRequestFullScreen == undefined) { | |
5 } else { | |
6 var span = document.getElementsByTagName('span')[0]; | 4 var span = document.getElementsByTagName('span')[0]; |
7 | 5 |
8 document.onwebkitfullscreenchange = function(event) { | 6 document.onwebkitfullscreenchange = function(event) { |
9 document.body.appendChild(document.createElement('div')); | 7 document.body.appendChild(document.createElement('div')); |
10 document.webkitCancelFullScreen(); | 8 document.webkitCancelFullScreen(); |
11 testRunner.notifyDone(); | 9 testRunner.notifyDone(); |
12 }; | 10 }; |
13 | 11 |
14 runWithKeyDown(function(){span.webkitRequestFullScreen()}); | 12 runWithKeyDown(function(){span.webkitRequestFullScreen()}); |
15 } | |
16 </script> | 13 </script> |
OLD | NEW |