Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: sky/tests/mutation-observer/observe-exceptions.sky

Issue 694423002: Replace <link rel="import"> with <import> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698