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

Side by Side Diff: sky/tests/mutation-observer/cross-document.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 cross document moves', function() { 5 describe('MutationObserver cross document moves', function() {
6 it('should handle basic observation', function(done) { 6 it('should handle basic observation', function(done) {
7 var mutations; 7 var mutations;
8 var div = document.createElement('div'); 8 var div = document.createElement('div');
9 var observer = new MutationObserver(function(records) { 9 var observer = new MutationObserver(function(records) {
10 mutations = records; 10 mutations = records;
11 }); 11 });
12 12
13 observer.observe(div, {attributes: true}); 13 observer.observe(div, {attributes: true});
(...skipping 26 matching lines...) Expand all
40 assert.equal(mutations[0].type, 'attributes'); 40 assert.equal(mutations[0].type, 'attributes');
41 assert.equal(mutations[0].target, subDiv); 41 assert.equal(mutations[0].target, subDiv);
42 assert.equal(mutations[0].attributeName, 'id'); 42 assert.equal(mutations[0].attributeName, 'id');
43 observer.disconnect(); 43 observer.disconnect();
44 done(); 44 done();
45 }, 0); 45 }, 0);
46 }); 46 });
47 }); 47 });
48 </script> 48 </script>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698