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) { | 4 if (Element.prototype.webkitRequestFullScreen == undefined) { |
5 } else { | 5 } else { |
6 var span = document.getElementsByTagName('span')[0]; | 6 var span = document.getElementsByTagName('span')[0]; |
7 | 7 |
8 document.onwebkitfullscreenchange = function(event) { | 8 document.onwebkitfullscreenchange = function(event) { |
9 document.body.appendChild(document.createElement('div')); | 9 document.body.appendChild(document.createElement('div')); |
10 document.webkitCancelFullScreen(); | 10 document.webkitCancelFullScreen(); |
11 layoutTestController.notifyDone(); | 11 layoutTestController.notifyDone(); |
12 }; | 12 }; |
13 | 13 |
14 runWithKeyDown(function(){span.webkitRequestFullScreen()}); | 14 runWithKeyDown(function(){span.webkitRequestFullScreen()}); |
15 } | 15 } |
16 </script> | 16 </script> |
OLD | NEW |