Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac8bd5e053b910cfdd8e181709c1f2f039d476b3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/embedded-content/the-iframe-element/iframe-append-to-child-document.html |
@@ -0,0 +1,17 @@ |
+<!doctype html> |
+<meta charset=utf-8> |
+<title>Append iframe element to its own child document</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<iframe id=x></iframe> |
+<script> |
+test(function() { |
+ var iframe = document.getElementById('x'); |
+ var childWindow = iframe.contentWindow; |
+ assert_equals(childWindow.parent, window); |
+ childWindow.document.body.appendChild(iframe); |
+ assert_equals(childWindow.parent, null); |
+ assert_equals(iframe.contentWindow, null); |
+ assert_equals(childWindow.document.body.firstChild, iframe); |
+}); |
+</script> |