OLD | NEW |
1 <body> | 1 <body> |
2 <div>This tests the <code>fullscreenEnabled</code> property laid out in section
4 of the W3C | 2 <div>This tests the <code>fullscreenEnabled</code> property laid out in section
4 of the W3C |
3 <a href="http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html">Full Scree
n API</a></div> | 3 <a href="http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html">Full Scree
n API</a></div> |
4 <script src="full-screen-test.js"></script> | 4 <script src="full-screen-test.js"></script> |
5 <script> | 5 <script> |
| 6 <!-- Fullscreen is enabled in same-origin frames regardless of allowfullscre
en --> |
6 var iframe = document.documentElement.appendChild(document.createElement('if
rame')); | 7 var iframe = document.documentElement.appendChild(document.createElement('if
rame')); |
7 iframe.setAttribute('allowfullscreen', 'true'); | 8 iframe.setAttribute('allowfullscreen', 'true'); |
8 var iframe2 = document.documentElement.appendChild(document.createElement('i
frame')); | 9 var iframe2 = document.documentElement.appendChild(document.createElement('i
frame')); |
9 testExpected('iframe.contentDocument.webkitFullscreenEnabled', true); | 10 testExpected('iframe.contentDocument.webkitFullscreenEnabled', true); |
10 testExpected('iframe2.contentDocument.webkitFullscreenEnabled', false); | 11 testExpected('iframe2.contentDocument.webkitFullscreenEnabled', true); |
11 endTest(); | 12 endTest(); |
12 </script> | 13 </script> |
OLD | NEW |