Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / block / basic / empty-anonymous-block-remove-crash.html
1 <html>
2     <head>
3         <script>
4             if (window.testRunner)
5             {
6                 testRunner.dumpAsText();
7                 testRunner.waitUntilDone();
8             }
9         
10             function runTest()
11             {
12                 var button = document.getElementById("test");
13                 button.insertBefore(document.createElement("tbody"));
14                 document.body.offsetTop;
15                 document.body.removeChild(button);
16                 
17                 var result = document.createElement("div");
18                 result.innerHTML = "PASS";
19                 document.body.appendChild(result);
20                 if (window.testRunner)
21                     testRunner.notifyDone();
22             }
23         </script>
24     </head>
25     <body onload="runTest()">
26         <button id="test"/>
27     </body>
28 </html>
29