| Index: LayoutTests/http/tests/misc/embed-image-load-outlives-gc-without-crashing.html
|
| diff --git a/LayoutTests/http/tests/misc/embed-image-load-outlives-gc-without-crashing.html b/LayoutTests/http/tests/misc/embed-image-load-outlives-gc-without-crashing.html
|
| index ce3906e080efc11dbab3903a69491ed8032e25f4..0c77d3fa5e0ca8cb0a1a8a369ecbef4149419c73 100644
|
| --- a/LayoutTests/http/tests/misc/embed-image-load-outlives-gc-without-crashing.html
|
| +++ b/LayoutTests/http/tests/misc/embed-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 an embed element representing an image. That embed element is wrapped
|
|
|
| function finished() {
|
| window.stop()
|
| - finishJSTest();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| }
|
|
|
| function forceGC() {
|
|
|