OLD | NEW |
| 1 <!DOCTYPE html> |
1 <body onload='parent.postMessage("onload", "*");'> | 2 <body onload='parent.postMessage("onload", "*");'> |
2 iframe2<br> | 3 iframe2<br> |
3 Manual test: click here. | 4 Manual test: click here. |
4 <script src="../full-screen-test.js"></script> | 5 <script src="../full-screen-test.js"></script> |
5 <script> | 6 <script> |
6 document.body.onclick = function() { | 7 window.onclick = function() { |
7 document.body.webkitRequestFullScreen(); | 8 document.body.webkitRequestFullScreen(); |
8 }; | 9 }; |
9 waitForEvent(document, 'webkitfullscreenchange', function() { | 10 waitForEvent(document, 'webkitfullscreenchange', function() { |
10 parent.postMessage("SUCCEED - entered full screen!", "*"); | 11 parent.postMessage("SUCCEED - entered full screen!", "*"); |
11 }); | 12 }); |
12 </script> | 13 </script> |
13 </body> | 14 </body> |
OLD | NEW |