Index: third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html |
diff --git a/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html b/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html |
index 065101ec57d556e98ae46b9a5872ac738fccffe6..fda724d85cfba69a121c4bea44d389102395a12d 100644 |
--- a/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html |
+++ b/third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html |
@@ -7,11 +7,15 @@ if (window.testRunner) { |
} |
function runTest() { |
root = document.getElementById('root').contentDocument; |
- root.addEventListener('load', function() { document.open(); document.write("PASS"); document.close(); }, 1); |
+ root.addEventListener('load', function() { |
+ document.open(); |
+ document.write("PASS"); |
+ document.close(); |
+ if (window.testRunner) { |
+ testRunner.notifyDone(); |
+ }}, 1); |
setTimeout(function() { |
root.getElementById('test').appendChild(document.createElement('iframe')); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
}, 0); |
} |
</script> |