| Index: LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html
|
| diff --git a/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html b/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html
|
| index 96b703393fdb1afa6fd4a705d6d4a27e42ddf7c8..ce546cefa569caa851a2758a5ba6749ce24a838c 100644
|
| --- a/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html
|
| +++ b/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced.html
|
| @@ -29,16 +29,11 @@ function runTest()
|
| // Have expected results assume that the frame has been closed (=> 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>
|
|
|