| OLD | NEW | 
|---|
| 1 <html> | 1 <html> | 
| 2 <link rel="import" href="../resources/chai.sky" /> | 2 <import src="../resources/chai.sky" /> | 
| 3 <link rel="import" href="../resources/mocha.sky" /> | 3 <import src="../resources/mocha.sky" /> | 
| 4 <script> | 4 <script> | 
| 5 describe('MutationObserver', function() { | 5 describe('MutationObserver', function() { | 
| 6     it('should deliver in order of creation', function(done) { | 6     it('should deliver in order of creation', function(done) { | 
| 7         var order = []; | 7         var order = []; | 
| 8         var observers = []; | 8         var observers = []; | 
| 9 | 9 | 
| 10         function setUpOrdering(num) { | 10         function setUpOrdering(num) { | 
| 11             observers.push(new MutationObserver(function(mutations) { | 11             observers.push(new MutationObserver(function(mutations) { | 
| 12                 order.push(num); | 12                 order.push(num); | 
| 13             })); | 13             })); | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 31         div.appendChild(document.createTextNode('hello')); | 31         div.appendChild(document.createTextNode('hello')); | 
| 32         div.firstChild.textContent = 'goodbye'; | 32         div.firstChild.textContent = 'goodbye'; | 
| 33         setTimeout(function() { | 33         setTimeout(function() { | 
| 34             assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); | 34             assert.deepEqual(order, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); | 
| 35             done(); | 35             done(); | 
| 36         }, 0); | 36         }, 0); | 
| 37     }); | 37     }); | 
| 38 }); | 38 }); | 
| 39 </script> | 39 </script> | 
| 40 </html> | 40 </html> | 
| OLD | NEW | 
|---|