Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 5 |
| 6 <div id="test1"> | 6 <div id="test1"> |
| 7 <div id="host1"> | 7 <div id="host1"> |
| 8 <template id="shadowroot" data-mode="open"> | 8 <template id="shadowroot" data-mode="open"> |
| 9 <slot id="s1" name="slot1"></slot> | 9 <slot id="s1" name="slot1"></slot> |
| 10 </template> | 10 </template> |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 302 async_test((test) => { | 302 async_test((test) => { |
| 303 let n = createTestTree(test7); | 303 let n = createTestTree(test7); |
| 304 removeWhiteSpaceOnlyTextNodes(n.test7); | 304 removeWhiteSpaceOnlyTextNodes(n.test7); |
| 305 | 305 |
| 306 document.body.offsetLeft; | 306 document.body.offsetLeft; |
| 307 doneIfSlotChange([n.s1, n.s2, n.s3], test); | 307 doneIfSlotChange([n.s1, n.s2, n.s3], test); |
| 308 | 308 |
| 309 n.c1.remove(); | 309 n.c1.remove(); |
| 310 }, "slotchange event: Fallback slot's parant slot is assinged to another slot.") ; | 310 }, "slotchange event: Fallback slot's parant slot is assinged to another slot.") ; |
| 311 </script> | 311 </script> |
| 312 | |
| 313 <div id="test8"> | |
| 314 <div id="host1"> | |
|
kochi
2016/11/30 04:20:37
Not critial, but all these subtrees have duplicate
| |
| 315 <template id="shadowroot" data-mode="open"> | |
| 316 <slot id="s1"></slot> | |
| 317 </template> | |
| 318 </div> | |
| 319 </div> | |
|
kochi
2016/11/30 04:20:37
This #test8 subtree isn't used?
hayato
2016/11/30 05:22:55
Done.
| |
| 320 | |
| 321 <script> | |
| 322 async_test((test) => { | |
| 323 const n = createTestTree(window.test1); | |
|
kochi
2016/11/30 04:20:37
nit: other tests use just 'test1', and no local 't
hayato
2016/11/30 05:22:55
Recently, I am using `window.` prefix explicitly f
| |
| 324 removeWhiteSpaceOnlyTextNodes(n.test1); | |
| 325 n.host1.innerHTML = 'hello'; | |
| 326 | |
| 327 window.setTimeout(() => { | |
| 328 doneIfSlotChange([n.s1], test); | |
| 329 n.host1.innerHTML = 'world'; | |
| 330 }, 0); | |
| 331 }, 'slotchange event: Replacing a text node with innerHTML.'); | |
| 332 </script> | |
| OLD | NEW |