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.observe on attributes', function() { | 5 describe('MutationObserver.observe on attributes', function() { |
6 it('should handle basic aspects of attribute observation', function(done) { | 6 it('should handle basic aspects of attribute observation', function(done) { |
7 var div; | 7 var div; |
8 var observer; | 8 var observer; |
9 var mutations; | 9 var mutations; |
10 | 10 |
11 function start() { | 11 function start() { |
12 div = document.createElement('div'); | 12 div = document.createElement('div'); |
13 div.setAttribute('bar', 'foo'); | 13 div.setAttribute('bar', 'foo'); |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 observer.disconnect(); | 560 observer.disconnect(); |
561 done(); | 561 done(); |
562 } | 562 } |
563 | 563 |
564 start(); | 564 start(); |
565 }); | 565 }); |
566 }); | 566 }); |
567 </script> | 567 </script> |
568 </body> | 568 </body> |
569 </html> | 569 </html> |
OLD | NEW |