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

Side by Side Diff: sky/tests/mutation-observer/mutation-record-constructor.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('MutationRecord', function() { 5 describe('MutationRecord', function() {
6 it('should be exposed on window but not constructable', function() { 6 it('should be exposed on window but not constructable', function() {
7 assert.ok(window.MutationRecord); 7 assert.ok(window.MutationRecord);
8 assert.equal(typeof MutationRecord, "function"); 8 assert.equal(typeof MutationRecord, "function");
9 assert.throw(function() { 9 assert.throw(function() {
10 new MutationRecord 10 new MutationRecord
11 }, TypeError); 11 }, TypeError);
12 12
13 var div = document.createElement('div'); 13 var div = document.createElement('div');
14 var observer = new MutationObserver(function(){}); 14 var observer = new MutationObserver(function(){});
15 observer.observe(div, {attributes: true}); 15 observer.observe(div, {attributes: true});
16 div.id = 'foo'; 16 div.id = 'foo';
17 var record = observer.takeRecords()[0]; 17 var record = observer.takeRecords()[0];
18 assert.ok(record instanceof MutationRecord); 18 assert.ok(record instanceof MutationRecord);
19 }); 19 });
20 }); 20 });
21 </script> 21 </script>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698