2 <p>Test that an image isn't accessible via form.property syntax after being removed from document.
</p>
8 if (window
.testRunner
) {
9 testRunner
.dumpAsText();
10 testRunner
.waitUntilDone();
15 if (window
.GCController
)
16 return GCController
.collect();
18 for (var i
= 0; i
< 10000; i
++) { // > force garbage collection (FF requires about 9K allocations before a collect)
19 var s
= new String("abc");
25 var f
= document
.getElementsByTagName("form")[0];
26 f
.removeChild(document
.getElementsByTagName("img")[0]);
28 setTimeout(function() {
32 document
.getElementsByTagName("div")[0].innerHTML
= "FAIL";
34 document
.getElementsByTagName("div")[0].innerHTML
= "PASS";
36 if (window
.testRunner
)
37 testRunner
.notifyDone();