blob: a8833dedbf78894db82f36504595183abbe6c275 [file] [log] [blame]
[email protected]b1b63202011-03-14 17:52:311<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=56264">bug 56264</a>:
2Handle entering full screen security restrictions</p>
[email protected]ca0a1d312011-04-22 23:52:443<p>To test manually, click the "Go full screen" button - the page should not enter full screen mode.</p>
[email protected]b1b63202011-03-14 17:52:314<script src="full-screen-test.js"></script>
5<script>
6function runTest() {
7 var frame = document.getElementById('frame');
8
9 waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() {
10 consoleWrite("FAIL - entered full screen!");
11 endTest();
12 });
13
[email protected]ecefa8b2012-01-12 19:15:2714 waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror', function() {
15 consoleWrite("SUCCEED - did not enter full screen!");
16 });
17
[email protected]b1b63202011-03-14 17:52:3118 runWithKeyDown(function() {
[email protected]b1b63202011-03-14 17:52:3119 frame.contentDocument.documentElement.webkitRequestFullScreen();
20 });
21}
22</script>
[email protected]ca0a1d312011-04-22 23:52:4423<iframe id="frame" src="resources/inner.html" onload="runTest()">
[email protected]b1b63202011-03-14 17:52:3124</iframe>