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.takeRecords', function() { | 5 describe('MutationObserver.takeRecords', function() { |
6 it('should allow taking records synchronously or getting a notification', func
tion(done) { | 6 it('should allow taking records synchronously or getting a notification', func
tion(done) { |
7 var mutations; | 7 var mutations; |
8 var div; | 8 var div; |
9 var subDiv; | 9 var subDiv; |
10 var observer; | 10 var observer; |
11 | 11 |
12 // Testing takeRecords. | 12 // Testing takeRecords. |
13 mutations = null; | 13 mutations = null; |
(...skipping 30 matching lines...) Expand all Loading... |
44 assert.equal(mutations[0].target, subDiv); | 44 assert.equal(mutations[0].target, subDiv); |
45 assert.equal(mutations[0].attributeName, "foo"); | 45 assert.equal(mutations[0].attributeName, "foo"); |
46 observer.disconnect(); | 46 observer.disconnect(); |
47 | 47 |
48 done(); | 48 done(); |
49 }, 0); | 49 }, 0); |
50 }); | 50 }); |
51 }); | 51 }); |
52 </script> | 52 </script> |
53 </html> | 53 </html> |
OLD | NEW |