REGRESSION: ASSERTION FAILED: obj->isRenderInline() || obj == this, Bad cast in WebCo...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-frameset.html
1 <script src="full-screen-test.js"></script>
2 <script>
3 if (window.testRunner)
4     testRunner.dumpChildFramesAsText();
5
6 var waitingFor = 2;
7 function runTest() {
8     if (--waitingFor)
9         return;
10     var frame = document.getElementById('frame');
11
12     waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { 
13             consoleWrite("FAIL - entered full screen!");
14             endTest(); 
15             if (testRunner)
16                 testRunner.notifyDone();     
17     });
18
19     runWithKeyDown(function() {
20
21         setTimeout(function() { 
22             consoleWrite("SUCCEED - did not enter full screen!"); 
23             endTest();
24             if (testRunner)
25                 testRunner.notifyDone();     
26         }, 50);
27
28         frame.contentDocument.documentElement.webkitRequestFullScreen();
29     });
30 }
31 </script>
32 <frameset rows="150,*">
33     <frame name="header" src="resources/not-allowed.html" webkitfullscreenallowed onload="runTest()">
34     <frame id="frame" src="resources/inner.html" onload="runTest()">
35 </frameset>