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 not interrupt delivery order on getting mutations during delivery',
function(done) { | 6 it('should not interrupt delivery order on getting mutations during delivery',
function(done) { |
7 function finish() { | 7 function finish() { |
8 assert.deepEqual(order, [1, 3, 2]); | 8 assert.deepEqual(order, [1, 3, 2]); |
9 done(); | 9 done(); |
10 } | 10 } |
11 | 11 |
12 var order = []; | 12 var order = []; |
13 var div = document.createElement('div'); | 13 var div = document.createElement('div'); |
(...skipping 11 matching lines...) Expand all Loading... |
25 | 25 |
26 observer1.observe(div, {attributes: true}); | 26 observer1.observe(div, {attributes: true}); |
27 observer2.observe(div, {childList: true}); | 27 observer2.observe(div, {childList: true}); |
28 observer3.observe(div, {attributes: true}); | 28 observer3.observe(div, {attributes: true}); |
29 div.setAttribute('foo', 'bar'); | 29 div.setAttribute('foo', 'bar'); |
30 setTimeout(finish, 0); | 30 setTimeout(finish, 0); |
31 }); | 31 }); |
32 }); | 32 }); |
33 </script> | 33 </script> |
34 </html> | 34 </html> |
OLD | NEW |