| 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 waitForEventOnce(document, 'webkitfullscreenchange', function()
{ | 8 waitForEventAndEnd(document, 'webkitfullscreenchange'); |
| 9 testRunner.layoutAndPaintAsyncThen(endTest); | |
| 10 }); | |
| 11 runWithKeyDown(goFullScreen); | 9 runWithKeyDown(goFullScreen); |
| 12 } | 10 } |
| 13 | 11 |
| 14 function goFullScreen() { | 12 function goFullScreen() { |
| 15 document.getElementById('video').webkitRequestFullScreen(); | 13 document.getElementById('video').webkitRequestFullScreen(); |
| 16 } | 14 } |
| 17 </script> | 15 </script> |
| 18 <script src="full-screen-test.js"></script> | 16 <script src="full-screen-test.js"></script> |
| 19 <style> | 17 <style> |
| 20 #one { | 18 #one { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 <body onload="init()"> | 48 <body onload="init()"> |
| 51 <div>This tests that a full screen element in a lower stacking context b
locks a sibling in a higher stacking context. | 49 <div>This tests that a full screen element in a lower stacking context b
locks a sibling in a higher stacking context. |
| 52 After entering full screen mode, only a black box should be visible
. | 50 After entering full screen mode, only a black box should be visible
. |
| 53 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> | 51 Click <button onclick="goFullScreen()">go full screen</button> to r
un the test.</div> |
| 54 <div id="one"></div> | 52 <div id="one"></div> |
| 55 <div id="zero"> | 53 <div id="zero"> |
| 56 <video id="video"></video> | 54 <video id="video"></video> |
| 57 </div> | 55 </div> |
| 58 </body> | 56 </body> |
| 59 </html> | 57 </html> |
| OLD | NEW |