OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
3 <script> | 3 <script> |
4 description('Inserting DocumentFragments should remove all children of the fragm
ent before inserting the children.'); | 4 description('Inserting DocumentFragments should remove all children of the fragm
ent before inserting the children.'); |
5 | 5 |
6 window.jsTestIsAsync = true; | 6 window.jsTestIsAsync = true; |
7 | 7 |
8 function createObservedFragment() { | 8 function createObservedFragment() { |
9 var fragment = document.createDocumentFragment(); | 9 var fragment = document.createDocumentFragment(); |
10 fragment.appendChild(document.createElement('b')); | 10 fragment.appendChild(document.createElement('b')); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 shouldBe('mutations[0].removedNodes.length', '2'); | 67 shouldBe('mutations[0].removedNodes.length', '2'); |
68 shouldBe('mutations[1].addedNodes.length', '2'); | 68 shouldBe('mutations[1].addedNodes.length', '2'); |
69 shouldBe('mutations[1].removedNodes.length', '1'); | 69 shouldBe('mutations[1].removedNodes.length', '1'); |
70 debug(''); | 70 debug(''); |
71 finishJSTest(); | 71 finishJSTest(); |
72 }, 0); | 72 }, 0); |
73 } | 73 } |
74 | 74 |
75 testAppendChild(); | 75 testAppendChild(); |
76 </script> | 76 </script> |
77 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |