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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/shadow-dom/slots.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Shadow DOM: Slots and assignments</title>
3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
2 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/shadow-dom.js"></script> 6 <script src="resources/shadow-dom.js"></script>
5 7
6 <div id="test_basic"> 8 <div id="test_basic">
7 <div id="host"> 9 <div id="host">
8 <template data-mode="open"> 10 <template data-mode="open">
9 <slot id="s1" name="slot1"></slot> 11 <slot id="s1" name="slot1"></slot>
10 </template> 12 </template>
11 <div id="c1" slot="slot1"></div> 13 <div id="c1" slot="slot1"></div>
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 499
498 n.s1.setAttribute('slot', 'slot6'); 500 n.s1.setAttribute('slot', 'slot6');
499 501
500 assert_array_equals(n.s1.assignedNodes(), [n.c1]); 502 assert_array_equals(n.s1.assignedNodes(), [n.c1]);
501 503
502 assert_array_equals(n.s5.assignedNodes(), [n.c5]); 504 assert_array_equals(n.s5.assignedNodes(), [n.c5]);
503 assert_array_equals(n.s6.assignedNodes(), [n.s1, n.s2, n.c6]); 505 assert_array_equals(n.s6.assignedNodes(), [n.s1, n.s2, n.c6]);
504 assert_array_equals(n.s6.assignedNodes({ flatten: true }), [n.c1, n.c2, n.c6]) ; 506 assert_array_equals(n.s6.assignedNodes({ flatten: true }), [n.c1, n.c2, n.c6]) ;
505 }, 'Slots: Mutation: Change slot slot= attribute.'); 507 }, 'Slots: Mutation: Change slot slot= attribute.');
506 </script> 508 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698