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

Side by Side Diff: third_party/WebKit/LayoutTests/shadow-dom/v1-slots-text-nodes.html

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « third_party/WebKit/LayoutTests/shadow-dom/v1-slots-in-v0-expected.html ('k') | no next file » | 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='../fast/dom/shadow/resources/shadow-dom.js'></script>
5 <div id='host'> 5 <div id='host'>
6 <template data-mode='open'> 6 <template data-mode='open'>
7 <div id='shadow-child1'></div> 7 <div id='shadow-child1'></div>
8 <slot></slot> 8 <slot></slot>
9 <slot name='slot1'></slot> 9 <slot name='slot1'></slot>
10 <div id='shadow-child2'></div> 10 <div id='shadow-child2'></div>
11 </template> 11 </template>
12 <div id='child1' slot='slot1'></div> 12 <div id='child1' slot='slot1'></div>
13 Hello 13 Hello
14 <div id='child2'></div> 14 <div id='child2'></div>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 test(() => { 47 test(() => {
48 assert_array_equals(defaultSlot.getAssignedNodes({flatten: true}), [textHello, child2, textWorld]); 48 assert_array_equals(defaultSlot.getAssignedNodes({flatten: true}), [textHello, child2, textWorld]);
49 assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]); 49 assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]);
50 }, "getAssignedNodes"); 50 }, "getAssignedNodes");
51 51
52 add_completion_callback(() => { 52 add_completion_callback(() => {
53 if (window.testRunner) 53 if (window.testRunner)
54 host.style.display = "none"; 54 host.style.display = "none";
55 }); 55 });
56 </script> 56 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/v1-slots-in-v0-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698