7 if (window
.GCController
)
8 return GCController
.collect();
10 for (var i
= 0; i
< 10000; i
++) { // > force garbage collection (FF requires about 9K allocations before a collect)
11 var s
= new String("");
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();
19 var validity
= document
.getElementById("control").validity
;
20 document
.body
.removeChild(document
.getElementById("control"));
22 validity
.valueMissing
;
23 document
.getElementById("result").firstChild
.data
= "Test has run: If no assertion or crash occurred, it passed.";
30 <body onload=
"runTest()">
32 <p>Tests the behavior of removing a control and then accessing its validity state afterward.
</p>
34 <select id=
"control"></select>
36 <p id=
"result">TEST DID NOT RUN YET
</p>