OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link rel="import" href="../resources/chai.sky" /> | 3 <import src="../resources/chai.sky" /> |
4 <link rel="import" href="../resources/mocha.sky" /> | 4 <import src="../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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 assert.equal(mutations[5].attributeName, "g"); | 258 assert.equal(mutations[5].attributeName, "g"); |
259 | 259 |
260 observer.disconnect(); | 260 observer.disconnect(); |
261 done(); | 261 done(); |
262 } | 262 } |
263 start(); | 263 start(); |
264 }); | 264 }); |
265 }); | 265 }); |
266 </script> | 266 </script> |
267 </html> | 267 </html> |
OLD | NEW |