2 <body onload=
"runTest()">
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
14 divBlock
.addEventListener("DOMCharacterDataModified", eventListener
, false);
15 pBlock
.outerText
= "text";
16 divBlock
.innerHTML
= "PASS, didn't crash.";
19 divBlock
.innerHTML
= "Threw an exception - " + exception
;
21 if (window
.testRunner
)
22 testRunner
.notifyDone();
25 function eventListener()
28 var range
= document
.createRange();
29 range
.setStart(divBlock
, 0);
30 range
.setEnd(divBlock
, divBlock
.childNodes
.length
- 1);
31 range
.deleteContents();
38 if (window
.GCController
)
39 return GCController
.collect();
41 for (var i
= 0; i
< 10000; i
++) { // > force garbage collection (FF requires about 9K allocations before a collect)
42 var s
= new String("");
47 <br/>textnode1
<p id=
"pBlock"></p>textnode2
<br/>