OLD | NEW |
(Empty) | |
| 1 <body onload="runTest();"> |
| 2 <script> |
| 3 if (window.testRunner) |
| 4 testRunner.dumpAsText(); |
| 5 |
| 6 function reference(domNode) |
| 7 { |
| 8 this.domNode = domNode; |
| 9 } |
| 10 function walk(a, currentPrefix, index, domNode) |
| 11 { |
| 12 if (domNode == null) |
| 13 return; |
| 14 newPrefix = currentPrefix + "_" + index; |
| 15 walk(a, currentPrefix, index + 1, domNode.nextSibling); |
| 16 walk(a, newPrefix, 0, domNode.firstChild); |
| 17 a[newPrefix] = new reference(domNode); |
| 18 } |
| 19 function clearAllNodes() |
| 20 { |
| 21 var a = new Array(); |
| 22 walk(a, "", 0, document.body); |
| 23 for (key in a) |
| 24 { |
| 25 document.body.offsetTop; |
| 26 child = a[key].domNode.parentNode.removeChild(a[key].domNode); |
| 27 } |
| 28 } |
| 29 function runTest() { |
| 30 clearAllNodes(); |
| 31 document.body = document.createElement("body"); |
| 32 document.body.innerHTML = "This test has passed if it doesn't crash un
der ASAN"; |
| 33 } |
| 34 </script>>>>>>><legend style="widows:994907373; padding-right:493197256%
; ">><h1 accesskey="5N'" class="Y990" dir="rtl" style="direction:rtl; line-heigh
t:20034836;" id="8" lang="tr" >>>>><abbr title="@u\>qr$^" accesskey="" tabindex=
"2147483648" title="\" title="QA'>9JQT" style="border-top-width:medium; white-s
pace:pre-line; " id="b71pkZOs" >>><center>,</center> |
| 35 <dl>></dl> |
| 36 <output>nnlN8rc<b></b> |
| 37 </output> |
| 38 > lang="xh" ></i> |
| 39 <output></output> |
| 40 </abbr> |
| 41 <sup>> |
OLD | NEW |