Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / fieldset / fieldset-adoptnode-crash.html
blob6c2c8e3a6d2f8ed313dc5e61b43ac6eeaa458bd7
1 <!DOCTYPE html>
2 <html>
3 <body>
5 <div id=parentDiv>
6 <div id=aDiv></div>
7 <fieldset id=aFieldSet form=noSuch></fieldset>
8 </div>
10 <script>
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
14 (function() {
15 var aDivShadow = aDiv.createShadowRoot();
16 var bDiv = document.createElement("div");
17 aDivShadow.appendChild(bDiv);
19 var createdDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
20 createdDoc.adoptNode(aDiv);
21 bDiv.appendChild(parentDiv);
22 })();
24 gc();
26 setTimeout(function() {
27 var url = window.location.toString();
28 if (0 < url.indexOf("**")) {
29 document.body.innerHTML = "PASS unless crash.";
30 return testRunner.notifyDone();
33 if (-1 == url.indexOf("?"))
34 url += "?";
35 url += "*";
36 window.location = url;
37 }, 0);
39 </script>
40 </body>
41 </html>