| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <link rel="import" href="../resources/mocha.sky" /> | 2 <import src="../resources/mocha.sky" /> |
| 3 <link rel="import" href="../resources/chai.sky" /> | 3 <import src="../resources/chai.sky" /> |
| 4 <script> | 4 <script> |
| 5 describe('DocumentFragments should remove all children of the fragment before mo
ving children, ', function() { | 5 describe('DocumentFragments should remove all children of the fragment before mo
ving children, ', function() { |
| 6 var mutations; | 6 var mutations; |
| 7 var observer; | 7 var observer; |
| 8 | 8 |
| 9 beforeEach(function() { | 9 beforeEach(function() { |
| 10 mutations = null; | 10 mutations = null; |
| 11 observer = new MutationObserver(function(records) { | 11 observer = new MutationObserver(function(records) { |
| 12 mutations = records; | 12 mutations = records; |
| 13 }); | 13 }); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 assert.equal(mutations[0].addedNodes.length, 0); | 60 assert.equal(mutations[0].addedNodes.length, 0); |
| 61 assert.equal(mutations[0].removedNodes.length, 2); | 61 assert.equal(mutations[0].removedNodes.length, 2); |
| 62 assert.equal(mutations[1].addedNodes.length, 2); | 62 assert.equal(mutations[1].addedNodes.length, 2); |
| 63 assert.equal(mutations[1].removedNodes.length, 1); | 63 assert.equal(mutations[1].removedNodes.length, 1); |
| 64 done(); | 64 done(); |
| 65 }, 0); | 65 }, 0); |
| 66 }); | 66 }); |
| 67 }); | 67 }); |
| 68 </script> | 68 </script> |
| 69 </html> | 69 </html> |
| OLD | NEW |