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

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

Issue 156653004: Revert of 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: Created 6 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/dom/shadow/get-distributed-nodes-orphan-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt b/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt
index d2d9c14d8e62716d3a2a620f054aba09c77c3b2d..5e88ef1091cc9ebae9d3ce919a3ce2182899d961 100644
--- a/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt
+++ b/LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan-expected.txt
@@ -1,9 +1,27 @@
-getDistributedNodes() shouldn't work unless it is inDocument
+getDistributedNodes() should work out of Document
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+getDistributedNodes() should work out of Document
PASS nodeList.length is expectedNodes.length
+PASS nodeList.item(0) is expectedNodes[0]
+
+When a content element is disconnected from ShadowRoot, it should not work.
+PASS nodeList.length is expectedNodes.length
+
+Reprojection case
+PASS nodeList.length is expectedNodes.length
+PASS nodeList.item(0) is expectedNodes[0]
+PASS nodeList.length is expectedNodes.length
+PASS nodeList.item(0) is expectedNodes[0]
+PASS nodeList.item(1) is expectedNodes[1]
+
+rootChild is disconnected. Now content became inactive, so content element itself should be distributed.
+PASS nodeList.length is expectedNodes.length
+PASS nodeList.length is expectedNodes.length
+PASS nodeList.item(0) is expectedNodes[0]
+PASS nodeList.item(1) is expectedNodes[1]
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/fast/dom/shadow/get-distributed-nodes-orphan.html ('k') | Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698