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

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

Issue 2273143002: Update web-platform-tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update baseline Created 4 years, 3 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 fallback contents</title> 2 <title>Shadow DOM: Slots and fallback contents</title>
3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com"> 3 <meta name="author" title="Hayato Ito" href="mailto:hayato@google.com">
4 <script src="../resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/shadow-dom.js"></script> 6 <script src="resources/shadow-dom.js"></script>
7 7
8 <div id="test1"> 8 <div id="test1">
9 <div id="host"> 9 <div id="host">
10 <template data-mode="open"> 10 <template data-mode="open">
11 <slot id="s1" name="slot1"> 11 <slot id="s1" name="slot1">
12 <div id="f1"></div> 12 <div id="f1"></div>
13 </slot> 13 </slot>
14 </template> 14 </template>
15 </div> 15 </div>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 n.s1.remove(); 212 n.s1.remove();
213 213
214 assert_array_equals(n.s1.assignedNodes(), []); 214 assert_array_equals(n.s1.assignedNodes(), []);
215 215
216 assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]); 216 assert_array_equals(n.s1.assignedNodes({ flatten: true }), [n.f1]);
217 assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f2]); 217 assert_array_equals(n.s2.assignedNodes({ flatten: true }), [n.f2]);
218 assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.f2]); 218 assert_array_equals(n.s3.assignedNodes({ flatten: true }), [n.f2]);
219 assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.f2, n.f4]); 219 assert_array_equals(n.s4.assignedNodes({ flatten: true }), [n.f2, n.f4]);
220 }, 'Slots fallback: Mutation. Remove a slot which is a fallback content of anot her slot.'); 220 }, 'Slots fallback: Mutation. Remove a slot which is a fallback content of anot her slot.');
221 </script> 221 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698