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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-element-distributed-nodes.html

Issue 137993003: Revert the feature of the <shadow> element as 'a function call' to the previous behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update LayoutTests/TestExpectations 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/shadow-dom.js"></script> 5 <script src="resources/shadow-dom.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id='console'></div> 8 <div id='console'></div>
9 <div id='sandbox'></div> 9 <div id='sandbox'></div>
10 <script> 10 <script>
(...skipping 26 matching lines...) Expand all
37 createDOM('div', {'id': 'host'}, 37 createDOM('div', {'id': 'host'},
38 createShadowRoot( 38 createShadowRoot(
39 createDOM('shadow', {'id': 'shadow'})))); 39 createDOM('shadow', {'id': 'shadow'}))));
40 assertDistributedNodes('host/shadow', []); 40 assertDistributedNodes('host/shadow', []);
41 41
42 prepareTree( 42 prepareTree(
43 createDOM('div', {'id': 'host'}, 43 createDOM('div', {'id': 'host'},
44 createShadowRoot( 44 createShadowRoot(
45 createDOM('shadow', {'id': 'shadow'}, 45 createDOM('shadow', {'id': 'shadow'},
46 createDOM('div', {'id': 'shadow-child'}))))); 46 createDOM('div', {'id': 'shadow-child'})))));
47 assertDistributedNodes('host/shadow', ['host/shadow-child']); 47 assertDistributedNodes('host/shadow', []);
48 48
49 prepareTree( 49 prepareTree(
50 createDOM('div', {'id': 'host'}, 50 createDOM('div', {'id': 'host'},
51 createShadowRoot( 51 createShadowRoot(
52 createDOM('shadow', {'id': 'shadow'})), 52 createDOM('shadow', {'id': 'shadow'})),
53 createDOM('div', {'id': 'host-child'}))); 53 createDOM('div', {'id': 'host-child'})));
54 assertDistributedNodes('host/shadow', ['host-child']); 54 assertDistributedNodes('host/shadow', ['host-child']);
55 55
56 prepareTree( 56 prepareTree(
57 createDOM('div', {'id': 'host'}, 57 createDOM('div', {'id': 'host'},
58 createShadowRoot( 58 createShadowRoot(
59 createDOM('shadow', {'id': 'shadow'}, 59 createDOM('shadow', {'id': 'shadow'},
60 createDOM('content'))), 60 createDOM('div'))),
61 createDOM('div', {'id': 'host-child'}))); 61 createDOM('div', {'id': 'host-child'})));
62 assertDistributedNodes('host/shadow', ['host-child']); 62 assertDistributedNodes('host/shadow', ['host-child']);
63 63
64 prepareTree( 64 prepareTree(
65 createDOM('details', {'id': 'details'}, 65 createDOM('details', {'id': 'details'},
66 createShadowRoot( 66 createShadowRoot(
67 createDOM('shadow', {'id': 'shadow'})), 67 createDOM('shadow', {'id': 'shadow'})),
68 createDOM('div', {'id': 'details-child'}))); 68 createDOM('div', {'id': 'details-child'})));
69 // A <detail> element has one UA shadow root. 69 // A <detail> element has one UA shadow root.
70 assertDistributedNodes('details//shadow', []); 70 assertDistributedNodes('details//shadow', []);
(...skipping 18 matching lines...) Expand all
89 createDOM('div', {'id': 'host-child'}))); 89 createDOM('div', {'id': 'host-child'})));
90 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host-child', 'hos t/older-child-2']); 90 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host-child', 'hos t/older-child-2']);
91 91
92 prepareTree( 92 prepareTree(
93 createDOM('div', {'id': 'host'}, 93 createDOM('div', {'id': 'host'},
94 createShadowRoot( 94 createShadowRoot(
95 createDOM('div', {'id': 'older-child-1'}), 95 createDOM('div', {'id': 'older-child-1'}),
96 createDOM('content', {'id': 'content'}), 96 createDOM('content', {'id': 'content'}),
97 createDOM('div', {'id': 'older-child-2'})), 97 createDOM('div', {'id': 'older-child-2'})),
98 createShadowRoot( 98 createShadowRoot(
99 createDOM('shadow', {'id': 'shadow'}, 99 createDOM('shadow', {'id': 'shadow'})),
100 createDOM('content'))),
101 createDOM('div', {'id': 'host-child'}))); 100 createDOM('div', {'id': 'host-child'})));
102 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host-child', 'hos t/older-child-2']); 101 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host-child', 'hos t/older-child-2']);
103 102
104 prepareTree( 103 prepareTree(
105 createDOM('div', {'id': 'host'}, 104 createDOM('div', {'id': 'host'},
106 createShadowRoot( 105 createShadowRoot(
107 createDOM('div', {'id': 'older-child-1'}), 106 createDOM('div', {'id': 'older-child-1'}),
108 createDOM('content', {'id': 'content'}), 107 createDOM('content', {'id': 'content'}),
109 createDOM('div', {'id': 'older-child-2'})), 108 createDOM('div', {'id': 'older-child-2'})),
110 createShadowRoot( 109 createShadowRoot(
111 createDOM('shadow', {'id': 'shadow'})))); 110 createDOM('shadow', {'id': 'shadow'}))));
112 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host/older-child- 2']); 111 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host/older-child- 2']);
113 112
114 prepareTree( 113 prepareTree(
115 createDOM('div', {'id': 'host'}, 114 createDOM('div', {'id': 'host'},
116 createShadowRoot( 115 createShadowRoot(
117 createDOM('div', {'id': 'older-child-1'}), 116 createDOM('div', {'id': 'older-child-1'}),
118 createDOM('content', {'id': 'content'}, 117 createDOM('content', {'id': 'content'},
119 createDOM('div', {'id': 'older-content-child'})), 118 createDOM('div', {'id': 'older-content-child'})),
120 createDOM('div', {'id': 'older-child-2'})), 119 createDOM('div', {'id': 'older-child-2'})),
121 createShadowRoot( 120 createShadowRoot(
122 createDOM('shadow', {'id': 'shadow'}, 121 createDOM('shadow', {'id': 'shadow'}))));
123 createDOM('content')))));
124 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host/older-conten t-child', 'host/older-child-2']); 122 assertDistributedNodes('host//shadow', ['host/older-child-1', 'host/older-conten t-child', 'host/older-child-2']);
125 123
126 prepareTree( 124 prepareTree(
127 createDOM('div', {'id': 'host'}, 125 createDOM('div', {'id': 'host'},
128 createShadowRoot( 126 createShadowRoot(
129 createDOM('div', {'id': 'oldest-child-1'}), 127 createDOM('div', {'id': 'oldest-child-1'}),
130 createDOM('content', {'id': 'content'}), 128 createDOM('content', {'id': 'content'}),
131 createDOM('div', {'id': 'oldest-child-2'})), 129 createDOM('div', {'id': 'oldest-child-2'})),
132 createShadowRoot( 130 createShadowRoot(
133 createDOM('div', {'id': 'older-child-1'}), 131 createDOM('div', {'id': 'older-child-1'}),
134 createDOM('shadow', {'id': 'older-shadow'}, 132 createDOM('shadow', {'id': 'older-shadow'}),
135 createDOM('content')),
136 createDOM('div', {'id': 'older-child-2'})), 133 createDOM('div', {'id': 'older-child-2'})),
137 createShadowRoot( 134 createShadowRoot(
138 createDOM('shadow', {'id': 'shadow'}, 135 createDOM('shadow', {'id': 'shadow'})),
139 createDOM('content'))),
140 createDOM('div', {'id': 'host-child'}))); 136 createDOM('div', {'id': 'host-child'})));
141 assertDistributedNodes('host//older-shadow', ['host/oldest-child-1', 'host-child ', 'host/oldest-child-2']); 137 assertDistributedNodes('host//older-shadow', ['host/oldest-child-1', 'host-child ', 'host/oldest-child-2']);
142 assertDistributedNodes('host///shadow', ['host//older-child-1', 'host/oldest-chi ld-1', 'host-child', 'host/oldest-child-2', 'host//older-child-2']); 138 assertDistributedNodes('host///shadow', ['host//older-child-1', 'host/oldest-chi ld-1', 'host-child', 'host/oldest-child-2', 'host//older-child-2']);
143 139
144 </script> 140 </script>
145 </body> 141 </body>
146 </html> 142 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698