Chromium Code Reviews| Index: LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html |
| diff --git a/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html b/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..494dff7a7cdc3cbcef96c5a90f58724dc2d43502 |
| --- /dev/null |
| +++ b/LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html |
| @@ -0,0 +1,14 @@ |
| +<script src='../../resources/js-test.js'></script> |
| +<body> |
| +<iframe></iframe> |
| +<script> |
| +description("Assert that parser reparented iframe has detached DOMWindow"); |
| + |
| +if (window.testRunner) testRunner.waitUntilDone(); |
|
Yuta Kitamura
2015/02/23 07:54:41
Unfold this into two lines
|
| +iframe = document.getElementsByTagName("iframe")[0]; |
|
Yuta Kitamura
2015/02/23 07:54:41
var
|
| +iframe.onload = function() { |
| + shouldBeNull('reparentedIframe.contentWindow'); |
| + testRunner.notifyDone(); |
| +}; |
| +iframe.src = 'resources/reparent-iframe.html'; |
| +</script> |