Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / full-screen-child-not-allowed-crash.html
1 <!DOCTYPE html>
2 <html>
3 <script src="full-screen-test.js"></script>
4 <body onload="init()">
5 <p>Test passes if it does not crash.</p>
6 <div id="div1">
7 <script>
8 var init = function() {
9     runWithKeyDown(function() { div1.webkitRequestFullScreen() });
10
11     frameset1 = document.createElementNS("http://www.w3.org/1999/xhtml", "frameset");
12     document.body.appendChild(frameset1);
13     setTimeout("crash()", 0);
14 };
15
16 function crash() {
17     frameset1.appendChild(div1);
18     if (window.eventSender)
19         eventSender.keyDown("X");
20     endTest();
21 }
22 </script>
23 </html>