| 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 waitForEventAndEnd(document, 'webkitfullscreenchange'); |
| 9 if (Element.prototype.webkitRequestFullScreen == undefined) { | 9 runWithKeyDown(goFullScreen); |
| 10 logResult(false, "Element.prototype.webkitRequestFullScreen
== undefined"); | |
| 11 endTest(); | |
| 12 } else { | |
| 13 waitForEventAndEnd(document, 'webkitfullscreenchange'); | |
| 14 runWithKeyDown(goFullScreen); | |
| 15 } | |
| 16 } | 10 } |
| 17 | 11 |
| 18 function goFullScreen() { | 12 function goFullScreen() { |
| 19 document.getElementById('block1').webkitRequestFullScreen(); | 13 document.getElementById('block1').webkitRequestFullScreen(); |
| 20 } | 14 } |
| 21 </script> | 15 </script> |
| 22 <script src="full-screen-test.js"></script> | 16 <script src="full-screen-test.js"></script> |
| 23 <style> | 17 <style> |
| 24 #block1 { | 18 #block1 { |
| 25 width: 200px; | 19 width: 200px; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 41 } | 35 } |
| 42 </style> | 36 </style> |
| 43 </head> | 37 </head> |
| 44 <body onload="init()"> | 38 <body onload="init()"> |
| 45 <div>This tests that an element with a positive z-index appears behind t
he full screen element. | 39 <div>This tests that an element with a positive z-index appears behind t
he full screen element. |
| 46 After entering full screen mode, only a green box should be visible
. | 40 After entering full screen mode, only a green box should be visible
. |
| 47 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> | 41 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> |
| 48 <div id="block2"></div> | 42 <div id="block2"></div> |
| 49 <div id="block1"></div> | 43 <div id="block1"></div> |
| 50 </body> | 44 </body> |
| OLD | NEW |