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

Side by Side Diff: LayoutTests/fast/dom/DOMImplementation/detached-doctype.html

Issue 762383004: Sync DOMImplementation.createDocument() IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=26402">bug 26402<a/ >: Crashes when using a detached DocumentType node.</p> 1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=26402">bug 26402<a/ >: Crashes when using a detached DocumentType node.</p>
2 <p>PASS if no crash.</p> 2 <p>PASS if no crash.</p>
3 <SCRIPT> 3 <SCRIPT>
4 function gc() 4 function gc()
5 { 5 {
6 if (window.GCController) 6 if (window.GCController)
7 return GCController.collect(); 7 return GCController.collect();
8 8
9 for (var i = 0; i < 10000; i++) 9 for (var i = 0; i < 10000; i++)
10 var s = new String(""); 10 var s = new String("");
11 } 11 }
12 12
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.dumpAsText(); 14 testRunner.dumpAsText();
15 15
16 var o = document.implementation.createDocumentType('x', null, null); 16 var o = document.implementation.createDocumentType('x', null, null);
17 var doc = document.implementation.createDocument("doc", null, 0); 17 var doc = document.implementation.createDocument("doc", null);
18 for (i in o) { 18 for (i in o) {
19 try { o[i]; } catch (e) {} 19 try { o[i]; } catch (e) {}
20 try { o[i](); } catch (e) {} 20 try { o[i](); } catch (e) {}
21 } 21 }
22 o.addEventListener("click", function() {}, true); 22 o.addEventListener("click", function() {}, true);
23 o.removeEventListener("click", function() {}, true); 23 o.removeEventListener("click", function() {}, true);
24 o.childNodes; 24 o.childNodes;
25 o.childNodes.item(0); 25 o.childNodes.item(0);
26 o.firstChild; 26 o.firstChild;
27 gc(); 27 gc();
28 document.write("DONE"); 28 document.write("DONE");
29 </SCRIPT> 29 </SCRIPT>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698