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

Unified Diff: LayoutTests/fast/frames/reparented-iframe-cleared-contentWindow.html

Issue 948793003: Fix inconsistent frame detach behavior of ContainerNode::parserRemoveChild. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/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>

Powered by Google App Engine
This is Rietveld 408576698