Index: LayoutTests/http/tests/misc/image-load-outlives-gc-without-crashing.html |
diff --git a/LayoutTests/http/tests/misc/image-load-outlives-gc-without-crashing.html b/LayoutTests/http/tests/misc/image-load-outlives-gc-without-crashing.html |
index 553094ec0f216f7f7d64dc449980a8028cb2ff4a..a253f5951c91585871856dd912203381176c3822 100644 |
--- a/LayoutTests/http/tests/misc/image-load-outlives-gc-without-crashing.html |
+++ b/LayoutTests/http/tests/misc/image-load-outlives-gc-without-crashing.html |
@@ -2,14 +2,16 @@ |
<script> |
if (window.testRunner) { |
- window.jsTestIsAsync = true; |
+ testRunner.waitUntilDone(); |
testRunner.dumpAsText(); |
} |
function loaded() { |
// If the garbage collection causes the image load to stop and therefore causes the load event to fire on the main frame, we failed. |
alert("FAIL: The load event fired"); |
- finishJSTest(); |
+ |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
} |
</script> |
@@ -24,7 +26,8 @@ This test has an image inside a div. It removes the div, forces garbage collect |
function finished() { |
window.stop() |
- finishJSTest(); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
} |
function forceGC() { |