Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: LayoutTests/fast/forms/fieldset/fieldset-adoptnode-crash.html

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 4
5 <div id=parentDiv> 5 <div id=parentDiv>
6 <div id=aDiv></div> 6 <div id=aDiv></div>
7 <fieldset id=aFieldSet form=noSuch></fieldset> 7 <fieldset id=aFieldSet form=noSuch></fieldset>
8 </div> 8 </div>
9 9
10 <script> 10 <script>
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 13
14 (function() { 14 (function() {
15 var aDivShadow = aDiv.createShadowRoot(); 15 var aDivShadow = aDiv.createShadowRoot();
16 var bDiv = document.createElement("div"); 16 var bDiv = document.createElement("div");
17 aDivShadow.appendChild(bDiv); 17 aDivShadow.appendChild(bDiv);
18 18
19 var createdDoc = document.implementation.createDocument("http://www.w3.org/199 9/xhtml", "html"); 19 var createdDoc = document.implementation.createDocument("http://www.w3.org/199 9/xhtml", "html", null);
20 createdDoc.adoptNode(aDiv); 20 createdDoc.adoptNode(aDiv);
21 bDiv.appendChild(parentDiv); 21 bDiv.appendChild(parentDiv);
22 })(); 22 })();
23 23
24 gc(); 24 gc();
25 25
26 setTimeout(function() { 26 setTimeout(function() {
27 var url = window.location.toString(); 27 var url = window.location.toString();
28 if (0 < url.indexOf("**")) { 28 if (0 < url.indexOf("**")) {
29 document.body.innerHTML = "PASS unless crash."; 29 document.body.innerHTML = "PASS unless crash.";
30 return testRunner.notifyDone(); 30 return testRunner.notifyDone();
31 } 31 }
32 32
33 if (-1 == url.indexOf("?")) 33 if (-1 == url.indexOf("?"))
34 url += "?"; 34 url += "?";
35 url += "*"; 35 url += "*";
36 window.location = url; 36 window.location = url;
37 }, 0); 37 }, 0);
38 38
39 </script> 39 </script>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698