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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/distribution-for-detached-subtree-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/shadow-dom.js"></script>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 description('distribution should be recalculated correctly for a detached subtre e.');
6
7 var shadowHost = document.createElement('div');
8 var shadowRoot = shadowHost.createShadowRoot();
9 var content = document.createElement('content');
10 shadowRoot.appendChild(content);
11 shouldBeEqualAsArray(content.getDistributedNodes(), []);
12
13 var shadowHostChild = document.createElement('div')
14 shadowHost.appendChild(shadowHostChild);
15 shouldBeEqualAsArray(content.getDistributedNodes(), [shadowHostChild]);
16 </script>
OLDNEW
« 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