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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/v1-default-slots.html

Issue 1604853004: Rename slot.getDistributedNodes() to slot.getAssingedNodes({flatten: true}). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/v1-slots-api-1.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src='../../../resources/testharness.js'></script> 2 <script src='../../../resources/testharness.js'></script>
3 <script src='../../../resources/testharnessreport.js'></script> 3 <script src='../../../resources/testharnessreport.js'></script>
4 <script src='resources/shadow-dom.js'></script> 4 <script src='resources/shadow-dom.js'></script>
5 <div id='host'> 5 <div id='host'>
6 <template data-mode='open'> 6 <template data-mode='open'>
7 <slot id='slot1'></slot> 7 <slot id='slot1'></slot>
8 <slot id='slot2'></slot> 8 <slot id='slot2'></slot>
9 <slot id='slot3' name='slot3'></slot> 9 <slot id='slot3' name='slot3'></slot>
10 </template> 10 </template>
(...skipping 19 matching lines...) Expand all
30 assert_equals(child4.assignedSlot, slot1); 30 assert_equals(child4.assignedSlot, slot1);
31 }, "assignedSlot"); 31 }, "assignedSlot");
32 32
33 test(() => { 33 test(() => {
34 assert_array_equals(slot1.getAssignedNodes(), [child2, child4]); 34 assert_array_equals(slot1.getAssignedNodes(), [child2, child4]);
35 assert_array_equals(slot2.getAssignedNodes(), []); 35 assert_array_equals(slot2.getAssignedNodes(), []);
36 assert_array_equals(slot3.getAssignedNodes(), [child3]); 36 assert_array_equals(slot3.getAssignedNodes(), [child3]);
37 }, "getAssignedNodes"); 37 }, "getAssignedNodes");
38 38
39 test(() => { 39 test(() => {
40 assert_array_equals(slot1.getDistributedNodes(), [child2, child4]); 40 assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child2, child4]) ;
41 assert_array_equals(slot2.getDistributedNodes(), []); 41 assert_array_equals(slot2.getAssignedNodes({flatten: true}), []);
42 assert_array_equals(slot3.getDistributedNodes(), [child3]); 42 assert_array_equals(slot3.getAssignedNodes({flatten: true}), [child3]);
43 }, "getDistributedNodes"); 43 }, "getDistributedNodes");
44 </script> 44 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/v1-slots-api-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698