Index: LayoutTests/plugins/attach-during-destroy.html |
diff --git a/LayoutTests/plugins/attach-during-destroy.html b/LayoutTests/plugins/attach-during-destroy.html |
index 3e600c904ff982b4c756591af000f8e677a5e08d..c99edf32df39a58029aeb11746a5f0ebecf4dca4 100644 |
--- a/LayoutTests/plugins/attach-during-destroy.html |
+++ b/LayoutTests/plugins/attach-during-destroy.html |
@@ -1,11 +1,6 @@ |
-<p> |
- Test for <i><a href="rdar://problem/7194735">rdar://problem/7194735</a> Crashes at RenderText::RenderText()</i>. |
-</p> |
-<p> |
- This test should not crash or cause an assertion failure. |
-</p> |
-<embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> |
-<div id="target"></div> |
+<!DOCTYPE html> |
+<html> |
+<head> |
<script> |
function destroyed() |
{ |
@@ -13,9 +8,26 @@ |
target.innerHTML = "text"; |
} |
- if (window.testRunner) |
- testRunner.dumpAsText(); |
+ function loaded() |
+ { |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+ } |
- document.body.offsetTop; |
- location.href = "data:text/html,Test for rdar://problem/7194735 PASSED."; |
+ document.body.offsetTop; |
+ location.href = "data:text/html,<head><scr" + "ipt>function loaded() { if (window.testRunner) testRunner.notifyDone(); }</scr" + "ipt></head><body onload='loaded()'>Test for rdar://problem/7194735 PASSED.</body>"; |
+ } |
</script> |
+</head> |
+<body onload="loaded()"> |
+<p> |
+ Test for <i><a href="rdar://problem/7194735">rdar://problem/7194735</a> Crashes at RenderText::RenderText()</i>. |
+</p> |
+<p> |
+ This test should not crash or cause an assertion failure. |
+</p> |
+<embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> |
+<div id="target"></div> |
+</body> |
+</html> |