4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
9 var image
= new Image();
11 image
.onload = function () {
12 document
.getElementById('result').innerHTML
= 'SUCCESS';
14 if (window
.testRunner
)
15 testRunner
.notifyDone();
18 image
.src
= 'resources/blue_rect.jpg'
21 if (window
.GCController
)
22 GCController
.collect();
24 // create lots of objects to force a garbage collection
34 <body onload=
"runTest()">
35 <div>This tests that an image element won't be garbage collected when it's loading, even if it doesn't have any references.
36 <div id=
"result">FAILURE
</div>