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

Unified Diff: LayoutTests/fast/dom/shadow/distribution-for-detached-subtree.html

Issue 1068193002: Make Node::needsDistributionRecalc always check the root node of the tree of trees, instead of the … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a test Created 5 years, 8 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/distribution-for-detached-subtree-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/distribution-for-detached-subtree.html
diff --git a/LayoutTests/fast/dom/shadow/distribution-for-detached-subtree.html b/LayoutTests/fast/dom/shadow/distribution-for-detached-subtree.html
new file mode 100644
index 0000000000000000000000000000000000000000..f75186e5bd450d16c3fac980acb2e5fea13e942c
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/distribution-for-detached-subtree.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script src="resources/shadow-dom.js"></script>
+<script src="../../../resources/js-test.js"></script>
+<script>
+description('distribution should be recalculated correctly for a detached subtree.');
+
+var shadowHost = document.createElement('div');
+var shadowRoot = shadowHost.createShadowRoot();
+var content = document.createElement('content');
+shadowRoot.appendChild(content);
+shouldBeEqualAsArray(content.getDistributedNodes(), []);
+
+var shadowHostChild = document.createElement('div')
+shadowHost.appendChild(shadowHostChild);
+shouldBeEqualAsArray(content.getDistributedNodes(), [shadowHostChild]);
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/distribution-for-detached-subtree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698