Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text-autosizing / empty-document-crash.html
blob094af576021d3966e3c29cac1cb15bb90dcf23cc
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="viewport" content="width=800">
5 <style>
6 body {
7 width: 800px;
8 margin: 0;
9 overflow-y: hidden;
11 </style>
13 <script src="resources/autosizingTest.js"></script>
14 </head>
15 <body>
17 Test for crbug.com/348458: this test passes if it does not crash.
18 <script>
19 // Create an iframe with no content (html, body) except for the document.
20 // Note: splitting the end script tag is requried to prevent closing the script we are in.
21 document.body.innerHTML += "<iframe src='data:text/html,<body><script>document.removeChild(document.body.parentElement)</s" + "cript>'></body></iframe>";
22 var forceLayout = document.getElementsByTagName('iframe')[0].offsetWidth;
23 document.write("PASS");
24 if (testRunner)
25 testRunner.dumpAsText();
26 </script>
28 </body>
29 </html>