Index: LayoutTests/http/tests/misc/video-poster-image-load-outlives-gc-without-crashing.html |
diff --git a/LayoutTests/http/tests/misc/video-poster-image-load-outlives-gc-without-crashing.html b/LayoutTests/http/tests/misc/video-poster-image-load-outlives-gc-without-crashing.html |
index 61413fc187c27eedb7ba58f0616253a3ae4fc971..b85e8d0f118d4775a323b6a44f30c5d5150248a4 100644 |
--- a/LayoutTests/http/tests/misc/video-poster-image-load-outlives-gc-without-crashing.html |
+++ b/LayoutTests/http/tests/misc/video-poster-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> |
@@ -25,7 +27,8 @@ This has a video element with an image for its poster frame. That video element |
function finished() { |
window.stop() |
- finishJSTest(); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
} |
function forceGC() { |