Duration doesn't change even if it is updated on EOS(additional).
[framework/web/webkit-efl.git] / LayoutTests / fullscreen / non-ancestor-iframe.html
1 <script src="full-screen-test.js"></script>
2 <div>This tests that full screen mode will not exit when a non-ancestor iframe is loaded in the page. Click <button onclick="startTest();">enter full screen</button> to start test.</div>
3 <div id="target">
4     <iframe id="iframe"></iframe>
5 </div>
6 <script>
7     var target = document.getElementById('target');
8     var iframe = document.getElementById('iframe');
9
10     waitForEventOnce(document, 'webkitfullscreenchange', function() {
11         waitForEvent(document, 'webkitfullscreenchange', function() {
12            logResult(false, 'Exited full screen'); 
13         });
14         iframe.src = 'resources/empty.html';
15     });
16
17     waitForEvent(iframe, 'load', function() {
18         testExpected("document.webkitIsFullScreen", true);
19         endTest();
20     });
21
22     var startTest = function() {
23         target.webkitRequestFullscreen();
24     };
25
26     if (window.testRunner)
27         runWithKeyDown(startTest);
28 </script>