OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Shadow DOM: slotchange Events</title> | 2 <title>Shadow DOM: slotchange Events</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="host1"> | 9 <div id="host1"> |
10 <template data-mode="open"> | 10 <template data-mode="open"> |
11 <slot id="s1" name="slot1"></slot> | 11 <slot id="s1" name="slot1"></slot> |
12 </template> | 12 </template> |
13 <div id="c1" slot="slot1"></div> | 13 <div id="c1" slot="slot1"></div> |
14 </div> | 14 </div> |
15 </div> | 15 </div> |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 <script> | 261 <script> |
262 async_test((test) => { | 262 async_test((test) => { |
263 let n = createTestTree(test6); | 263 let n = createTestTree(test6); |
264 removeWhiteSpaceOnlyTextNodes(n.test6); | 264 removeWhiteSpaceOnlyTextNodes(n.test6); |
265 | 265 |
266 doneIfSlotChange([n.s2], test); | 266 doneIfSlotChange([n.s2], test); |
267 | 267 |
268 n.s1.remove(); | 268 n.s1.remove(); |
269 }, "slotchange event: Even if distributed nodes do not change, slotchange should
be fired if assigned nodes are changed."); | 269 }, "slotchange event: Even if distributed nodes do not change, slotchange should
be fired if assigned nodes are changed."); |
270 </script> | 270 </script> |
OLD | NEW |