| 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 cross document moves', function() { | 5 describe('MutationObserver cross document moves', function() { |
| 6 it('should handle basic observation', function(done) { | 6 it('should handle basic observation', function(done) { |
| 7 var mutations; | 7 var mutations; |
| 8 var div = document.createElement('div'); | 8 var div = document.createElement('div'); |
| 9 var observer = new MutationObserver(function(records) { | 9 var observer = new MutationObserver(function(records) { |
| 10 mutations = records; | 10 mutations = records; |
| 11 }); | 11 }); |
| 12 | 12 |
| 13 observer.observe(div, {attributes: true}); | 13 observer.observe(div, {attributes: true}); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 40 assert.equal(mutations[0].type, 'attributes'); | 40 assert.equal(mutations[0].type, 'attributes'); |
| 41 assert.equal(mutations[0].target, subDiv); | 41 assert.equal(mutations[0].target, subDiv); |
| 42 assert.equal(mutations[0].attributeName, 'id'); | 42 assert.equal(mutations[0].attributeName, 'id'); |
| 43 observer.disconnect(); | 43 observer.disconnect(); |
| 44 done(); | 44 done(); |
| 45 }, 0); | 45 }, 0); |
| 46 }); | 46 }); |
| 47 }); | 47 }); |
| 48 </script> | 48 </script> |
| 49 </html> | 49 </html> |
| OLD | NEW |