| Index: LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html
|
| diff --git a/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html b/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html
|
| index f897fb2b22d19ff49be6e3ece39292d883479af1..200654bc1fc0b275dbab9b5222e3cece135d8566 100644
|
| --- a/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html
|
| +++ b/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced.html
|
| @@ -22,16 +22,11 @@ function runTest()
|
| // Have expected results assume that the frame has been closed and GCed (=> window.closed = true.)
|
| collectProperties(true);
|
| frame.parentNode.removeChild(frame);
|
| - window.setTimeout(verifyResults, 0);
|
| -}
|
| -
|
| -function verifyResults()
|
| -{
|
| - if (window.gc)
|
| - gc();
|
| - for (var i = 0; i < propertiesToVerify.length; ++i)
|
| - shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected);
|
| - finishJSTest();
|
| + asyncGC(function () {
|
| + for (var i = 0; i < propertiesToVerify.length; ++i)
|
| + shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected);
|
| + finishJSTest();
|
| + });
|
| }
|
| </script>
|
| </head>
|
|
|