Index: LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed.html |
diff --git a/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed.html b/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed.html |
index ca82951736706a16a85f083f2ed2ce97d7d424b5..8e515d77a16751e6288dcbd80ecf62c5901e077e 100644 |
--- a/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed.html |
+++ b/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed.html |
@@ -24,7 +24,8 @@ function runTest() |
description("Tests access of cached DOMWindow properties after the associated frame is no longer in a web page. Test should not crash and properties should be set to sane defaults."); |
var frame = document.getElementById("frame"); |
childWindow = frame.contentWindow; |
- collectProperties(); |
+ // Have expected results assume that the frame hasn't been closed (=> window.closed = false.) |
+ collectProperties(false); |
frame.parentNode.removeChild(frame); |
for (var i = 0; i < propertiesToVerify.length; ++i) |
shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected); |