Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: LayoutTests/plugins/attach-during-destroy.html

Issue 316313002: Unflake plugins/attach-during-destroy.html and plugins/destroy-reentry.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge a bunch of results Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698