| 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', function() { | 5 describe('MutationObserver observe', function() { |
| 6 it('should throw on invalid input', function() { | 6 it('should throw on invalid input', function() { |
| 7 var div = document.createElement('div'); | 7 var div = document.createElement('div'); |
| 8 var observer = new MutationObserver(function(mutations) { }); | 8 var observer = new MutationObserver(function(mutations) { }); |
| 9 assert.throw(function() { | 9 assert.throw(function() { |
| 10 observer.observe(); | 10 observer.observe(); |
| 11 }); | 11 }); |
| 12 assert.throw(function() { | 12 assert.throw(function() { |
| 13 observer.observe(null); | 13 observer.observe(null); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 assert.throw(function() { | 45 assert.throw(function() { |
| 46 observer.observe(div, {characterData: false, characterDataOldValue: true})
; | 46 observer.observe(div, {characterData: false, characterDataOldValue: true})
; |
| 47 }); | 47 }); |
| 48 assert.throw(function() { | 48 assert.throw(function() { |
| 49 observer.observe(div, {characterData: false, characterDataOldValue: false}
); | 49 observer.observe(div, {characterData: false, characterDataOldValue: false}
); |
| 50 }); | 50 }); |
| 51 }); | 51 }); |
| 52 }); | 52 }); |
| 53 </script> | 53 </script> |
| 54 </html> | 54 </html> |
| OLD | NEW |