OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link rel="import" href="../resources/chai.html" /> | 3 <link rel="import" href="../resources/chai.sky" /> |
4 <link rel="import" href="../resources/mocha.html" /> | 4 <link rel="import" href="../resources/mocha.sky" /> |
5 <script> | 5 <script> |
6 describe('MutationObserver.observe on a subtree', function() { | 6 describe('MutationObserver.observe on a subtree', function() { |
7 it('should handle basic aspects of subtree observation', function(done) { | 7 it('should handle basic aspects of subtree observation', function(done) { |
8 var observer; | 8 var observer; |
9 var subDiv; | 9 var subDiv; |
10 var mutations; | 10 var mutations; |
11 | 11 |
12 function start() { | 12 function start() { |
13 var div = document.createElement('div'); | 13 var div = document.createElement('div'); |
14 subDiv = div.appendChild(document.createElement('div')); | 14 subDiv = div.appendChild(document.createElement('div')); |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 assert.equal(mutations[5].attributeName, "g"); | 255 assert.equal(mutations[5].attributeName, "g"); |
256 | 256 |
257 observer.disconnect(); | 257 observer.disconnect(); |
258 done(); | 258 done(); |
259 } | 259 } |
260 start(); | 260 start(); |
261 }); | 261 }); |
262 }); | 262 }); |
263 </script> | 263 </script> |
264 </html> | 264 </html> |
OLD | NEW |