| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 var runPixelTests = true; | 5 var runPixelTests = true; |
| 6 | 6 |
| 7 function init() { | 7 function init() { |
| 8 // Bail out early if the full screen API is not enabled or is mi
ssing: | 8 // Bail out early if the full screen API is not enabled or is mi
ssing: |
| 9 if (Element.prototype.webkitRequestFullScreen == undefined) { | 9 if (Element.prototype.webkitRequestFullScreen == undefined) { |
| 10 logResult(false, "Element.prototype.webkitRequestFullScreen
== undefined"); | 10 logResult(false, "Element.prototype.webkitRequestFullScreen
== undefined"); |
| 11 endTest(); | 11 endTest(); |
| 12 } else { | 12 } else { |
| 13 var iframe = document.getElementById('block1'); | 13 var iframe = document.getElementById('block1'); |
| 14 var element = iframe.contentDocument.documentElement; | 14 var element = iframe.contentDocument.documentElement; |
| 15 waitForEventAndEnd(element, 'webkitfullscreenchange'); | 15 waitForEventAndEnd(element, 'webkitfullscreenchange'); |
| 16 runWithKeyDown(goFullScreen); | 16 runWithKeyDown(goFullScreen); |
| 17 } | 17 } |
| 18 } | 18 } |
| 19 | 19 |
| 20 function goFullScreen() { | 20 function goFullScreen() { |
| 21 var iframe = document.getElementById('block1'); | 21 var iframe = document.getElementById('block1'); |
| 22 var element = iframe.contentDocument.documentElement; | 22 var element = iframe.contentDocument.documentElement; |
| 23 element.webkitRequestFullScreen(); | 23 element.webkitRequestFullScreen(); |
| 24 } | 24 } |
| 25 </script> | 25 </script> |
| 26 <script src="full-screen-test.js"></script> | 26 <script src="full-screen-test.js"></script> |
| 27 <style> | 27 <style> |
| 28 #block1 { | 28 #block1 { |
| 29 width: 200px; | 29 width: 200px; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 left: 50px; | 42 left: 50px; |
| 43 top: 25px; | 43 top: 25px; |
| 44 } | 44 } |
| 45 </style> | 45 </style> |
| 46 </head> | 46 </head> |
| 47 <body onload="init()"> | 47 <body onload="init()"> |
| 48 <div>This tests that an element with a positive z-index appears behind t
he full screen element. | 48 <div>This tests that an element with a positive z-index appears behind t
he full screen element. |
| 49 After entering full screen mode, only a white box should be visible
. | 49 After entering full screen mode, only a white box should be visible
. |
| 50 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> | 50 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> |
| 51 <div id="block2"></div> | 51 <div id="block2"></div> |
| 52 <iframe webkitallowfullscreen src="resources/inner.html" id="block1"></i
frame> | 52 <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe> |
| 53 </body> | 53 </body> |
| 54 </html> |
| OLD | NEW |