Index: LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html |
diff --git a/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html b/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html |
index 9a033edaef924292043a04b361b927bf72e012db..7c9c7ed60b473c21abb3d617788147d034426b45 100644 |
--- a/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html |
+++ b/LayoutTests/fast/frames/out-of-document-iframe-has-child-frame.html |
@@ -9,6 +9,7 @@ description("This tests that several ways of making an iframe that isn't inserte |
+ " but has a child frame will fail."); |
main = document.getElementById("main"); |
+window.jsTestIsAsync = true; |
try { |
container = main.appendChild(document.createElement("div")); |
@@ -44,9 +45,13 @@ try { |
helperFrame.src = "javascript:top.container.removeChild(top.targetFrame3)"; |
document.body.appendChild(container); |
} catch (e) { } |
-shouldBeTrue("targetFrame3.contentWindow == undefined"); |
-isSuccessfullyParsed(); |
+setTimeout(function() { |
+ shouldBeTrue("targetFrame3.contentWindow == undefined"); |
+ finishJSTest(); |
+}, 0); |
+ |
+ |
</script> |
</body> |
</html> |