Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / plugins / renderless-plugin-creation-doesnt-crash-without-frame.html
1 <script>
2
3 if (window.testRunner)
4   testRunner.dumpAsText()
5
6 var docElement = document.documentElement;
7
8 function init()
9 {
10   embedElement = document.createElement("embed");
11
12   newDoc = document.implementation.createDocument("http://www.w3.org/2000/svg", null);
13   newDoc.adoptNode(embedElement);
14   embedElement.setAttribute("type", "application/x-webkit-test-netscape");
15 }
16
17 document.addEventListener("DOMContentLoaded", init, false);
18
19 </script>
20
21 Test added to address crash: http://crbug.com/360391<p>
22
23 This test tests to see if renderless plugin creation is possible;
24 previously it would have crashed due to the lack of a frame().