Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / full-screen-not-enabled-when-unsupported.html
1 <body>
2 <div>This tests that the <code>fullscreenEnabled</code> property is false when fullscreen
3 is not supported as laid out in section 4 of the 
4 <a href="http://fullscreen.spec.whatwg.org/#api">Fullscreen API</a> living
5 standard</div>
6 <script src="full-screen-test.js"></script>
7 <script>
8     window.internals.settings.setFullscreenSupported(false);
9     
10     testExpected('document.webkitFullscreenEnabled', false);
11
12     var iframe = document.documentElement.appendChild(document.createElement('iframe'));
13     iframe.setAttribute('allowfullscreen', 'true');
14     testExpected('iframe.contentDocument.webkitFullscreenEnabled', false);
15     endTest();
16 </script>
17 </body>