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

Side by Side Diff: sky/tests/mutation-observer/mutation-record-nullity.sky

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://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.html" /> 2 <link rel="import" href="../resources/chai.sky" />
3 <link rel="import" href="../resources/mocha.html" /> 3 <link rel="import" href="../resources/mocha.sky" />
4 <script> 4 <script>
5 describe('Non-relevant properties on mutation records should be null, except for NodeLists, which should be empty', function() { 5 describe('Non-relevant properties on mutation records should be null, except for NodeLists, which should be empty', function() {
6 6
7 var observer = new MutationObserver(function() {}); 7 var observer = new MutationObserver(function() {});
8 8
9 it('on characterData records', function() { 9 it('on characterData records', function() {
10 var text = document.createTextNode('something'); 10 var text = document.createTextNode('something');
11 observer.observe(text, {characterData: true}); 11 observer.observe(text, {characterData: true});
12 text.data = 'something else'; 12 text.data = 'something else';
13 var record = observer.takeRecords()[0]; 13 var record = observer.takeRecords()[0];
(...skipping 19 matching lines...) Expand all
33 record = observer.takeRecords()[0]; 33 record = observer.takeRecords()[0];
34 assert.isNull(record.oldValue); 34 assert.isNull(record.oldValue);
35 assert.isNull(record.previousSibling); 35 assert.isNull(record.previousSibling);
36 assert.isNull(record.nextSibling); 36 assert.isNull(record.nextSibling);
37 assert.equal(record.addedNodes.length, 0); 37 assert.equal(record.addedNodes.length, 0);
38 assert.equal(record.removedNodes.length, 0); 38 assert.equal(record.removedNodes.length, 0);
39 }); 39 });
40 }); 40 });
41 </script> 41 </script>
42 </html> 42 </html>
OLDNEW
« no previous file with comments | « sky/tests/mutation-observer/mutation-record-nullity.html ('k') | sky/tests/mutation-observer/observe-attributes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698