Duration doesn't change even if it is updated on EOS(additional).
[framework/web/webkit-efl.git] / LayoutTests / fullscreen / full-screen-iframe-allowed.html
1 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=56264">bug 56264</a>: 
2 Handle entering full screen security restrictions</p>
3 <p>To test manually, click the "Go full screen" button - the page should enter full screen mode.</p>
4 <script src="full-screen-test.js"></script>
5 <script>
6 function runTest() {
7     var frame = document.getElementById('frame');
8
9     waitForEvent(frame.contentDocument, 'webkitfullscreenchange', function() { 
10             test("document.getElementById('frame').contentDocument.width==document.width")
11             endTest();
12     });
13
14     runWithKeyDown(function() {
15
16         setTimeout(function() { 
17             consoleWrite("FAIL - did not enter full screen!"); 
18             endTest(); 
19         }, 50);
20
21         frame.contentDocument.documentElement.webkitRequestFullScreen();
22     });
23 }
24 </script>
25 <iframe id="frame" src="resources/inner.html" width="300" height="100" onload="runTest()" webkitallowfullscreen>
26 </iframe>