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

Unified Diff: LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html

Issue 133213008: Either content elements or shadow elements should not be treated as insertion points if they are no… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html
diff --git a/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html b/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html
index 428e724ac80ac8d7bd0863857d768f43fd4b899d..05a87b85a4d1dabfe6f1f176010dc0d4aa61b74e 100644
--- a/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html
+++ b/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html
@@ -10,7 +10,7 @@
<pre id="console"></pre>
<script>
-description("getDistributedNodes() should work out of Document");
+description("getDistributedNodes() shouldn't work unless it is inDocument");
function assertNodeList(nodeList, expectedNodes)
{
@@ -32,31 +32,7 @@ host.appendChild(child);
rootChild.appendChild(content);
shadowRoot.appendChild(rootChild);
-debug('getDistributedNodes() should work out of Document');
-assertNodeList(content.getDistributedNodes(), [child]);
-debug('');
-
-debug('When a content element is disconnected from ShadowRoot, it should not work.');
-shadowRoot.removeChild(rootChild);
-assertNodeList(content.getDistributedNodes(), []);
-debug('');
-
-debug('Reprojection case');
-shadowRoot.appendChild(rootChild);
-var shadowRoot2 = rootChild.createShadowRoot();
-var content2 = document.createElement('content');
-var rootChildChild = document.createElement('div');
-shadowRoot2.appendChild(content2);
-rootChild.appendChild(rootChildChild);
-
-assertNodeList(content.getDistributedNodes(), [child]);
-assertNodeList(content2.getDistributedNodes(), [child, rootChildChild]);
-debug('');
-
-debug('rootChild is disconnected. Now content became inactive, so content element itself should be distributed.');
-shadowRoot.removeChild(rootChild);
assertNodeList(content.getDistributedNodes(), []);
-assertNodeList(content2.getDistributedNodes(), [content, rootChildChild]);
debug('');
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698