- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / fullscreen-child-not-allowed-crash.html
1 <!DOCTYPE html>\r
2 <html>\r
3 <script src="full-screen-test.js"></script>\r
4 <body onload="init()">\r
5 <p>Test passes if it does not crash.</p>\r
6 <div id="div1">\r
7 <script>\r
8 var init = function() {\r
9     // Bail out early if the full screen API is not enabled or is missing:\r
10     if (Element.prototype.webkitRequestFullScreen == undefined) {\r
11         logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");\r
12         endTest();\r
13     } else {\r
14         runWithKeyDown(function() { div1.webkitRequestFullScreen() });        \r
15     }\r
16     \r
17     frameset1 = document.createElementNS("http://www.w3.org/1999/xhtml", "frameset");\r
18     document.body.appendChild(frameset1);\r
19     setTimeout("crash()", 0);\r
20 };\r
21 \r
22 function crash() {\r
23     frameset1.appendChild(div1);\r
24         if (window.eventSender)\r
25         eventSender.keyDown("X");\r
26     endTest();\r
27 }\r
28 </script>\r
29 </html>\r