OLD | NEW |
1 <html> | 1 <html> |
2 <import src="../resources/chai.sky" /> | |
3 <import src="../resources/mocha.sky" /> | |
4 <script> | 2 <script> |
5 describe('Document', function() { | 3 import "../resources/third_party/unittest/unittest.dart"; |
6 it('should have a constructor', function() { | 4 import "../resources/unit.dart"; |
| 5 |
| 6 import "dart:sky"; |
| 7 |
| 8 main() { |
| 9 initUnit(); |
| 10 |
| 11 test('should have a constructor', () { |
7 var doc = new Document(); | 12 var doc = new Document(); |
8 assert.isNotNull(doc); | 13 expect(doc, isNotNull); |
9 assert.doesNotThrow(function() { | 14 // assert.doesNotThrow(function() { |
10 doc.registerElement('x-foo'); | 15 // doc.registerElement('x-foo'); |
11 }, 'new document should have a registration context'); | 16 // }, 'new document should have a registration context'); |
12 }); | 17 }); |
13 }); | 18 } |
14 </script> | 19 </script> |
15 </html> | 20 </html> |
OLD | NEW |