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

Side by Side Diff: LayoutTests/svg/dom/vkern-element-crash.html

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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
« no previous file with comments | « LayoutTests/pointer-lock/pointer-lock-api.html ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 gc = window.gc || function() 9 gc = window.gc || function()
10 { 10 {
11 if (window.GCController) 11 if (window.GCController)
12 return GCController.collect(); 12 return GCController.collect();
13 13
14 for (var i = 0; i < 10000; ++i) 14 for (var i = 0; i < 10000; ++i)
15 var s = new String("AAAA"); 15 var s = new String("AAAA");
16 } 16 }
17 17
18 window.onload = function() 18 window.onload = function()
19 { 19 {
20 element1 = document.body.appendChild(document.createElement()); 20 element1 = document.body.appendChild(document.createElement('x'));
21 element1.id = "foo"; 21 element1.id = "foo";
22 22
23 parent = document.createElementNS("http://www.w3.org/2000/svg", "vkern"); 23 parent = document.createElementNS("http://www.w3.org/2000/svg", "vkern");
24 element2 = parent.appendChild(document.createElement()); 24 element2 = parent.appendChild(document.createElement('x'));
25 element2.id = "foo"; 25 element2.id = "foo";
26 document.body.appendChild(parent); 26 document.body.appendChild(parent);
27 27
28 element3 = document.body.appendChild(document.createElement()); 28 element3 = document.body.appendChild(document.createElement('x'));
29 element3.id = "foo"; 29 element3.id = "foo";
30 30
31 document.body.removeChild(element1); 31 document.body.removeChild(element1);
32 document.getElementById("foo"); 32 document.getElementById("foo");
33 33
34 parent.removeChild(element2); 34 parent.removeChild(element2);
35 element2 = null; 35 element2 = null;
36 gc(); 36 gc();
37 37
38 setTimeout(finishTest, 0); 38 setTimeout(finishTest, 0);
39 } 39 }
40 40
41 function finishTest() 41 function finishTest()
42 { 42 {
43 document.getElementById("foo"); 43 document.getElementById("foo");
44 44
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.notifyDone(); 46 testRunner.notifyDone();
47 } 47 }
48 </script> 48 </script>
49 </head> 49 </head>
50 <body>PASS</body> 50 <body>PASS</body>
51 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/pointer-lock/pointer-lock-api.html ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698