Index: LayoutTests/plugins/destroy-reentry.html |
diff --git a/LayoutTests/plugins/destroy-reentry.html b/LayoutTests/plugins/destroy-reentry.html |
index fd8578aff6ca541c15d4b2c06d48c949dcf837b4..73c345cd1333965186d72346e5f9c6d055941b5c 100644 |
--- a/LayoutTests/plugins/destroy-reentry.html |
+++ b/LayoutTests/plugins/destroy-reentry.html |
@@ -1,12 +1,6 @@ |
-<p> |
- Test for <i><a href="rdar://problem/6937089">rdar://problem/6937089</a> Crashes at RenderWidget::destroy()</i>. |
-</p> |
-<p> |
- This test should not crash or cause an assertion failure. |
-</p> |
-<div id="target"> |
- <embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> |
-</div> |
+<!DOCTYPE html> |
+<html> |
+<head> |
<script> |
function destroyed() |
{ |
@@ -14,9 +8,26 @@ |
target.parentNode.removeChild(target); |
} |
- 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/6937089 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/6937089 PASSED.</body>"; |
+ } |
</script> |
+<body onload="loaded()"> |
+<p> |
+ Test for <i><a href="rdar://problem/6937089">rdar://problem/6937089</a> Crashes at RenderWidget::destroy()</i>. |
+</p> |
+<p> |
+ This test should not crash or cause an assertion failure. |
+</p> |
+<div id="target"> |
+ <embed type="application/x-webkit-test-netscape" ondestroy="destroyed()"> |
+</div> |
+</body> |
+</html> |