OLD | NEW |
1 library DOMParserTest; | |
2 import 'package:unittest/unittest.dart'; | |
3 import 'package:unittest/html_config.dart'; | |
4 import 'dart:html'; | 1 import 'dart:html'; |
5 | 2 |
| 3 import 'package:minitest/minitest.dart'; |
| 4 |
6 main() { | 5 main() { |
7 | |
8 useHtmlConfiguration(); | |
9 | |
10 var isDomParser = predicate((x) => x is DomParser, 'is a DomParser'); | 6 var isDomParser = predicate((x) => x is DomParser, 'is a DomParser'); |
11 | 7 |
12 test('constructorTest', () { | 8 test('constructorTest', () { |
13 var ctx = new DomParser(); | 9 var ctx = new DomParser(); |
14 expect(ctx, isNotNull); | 10 expect(ctx, isNotNull); |
15 expect(ctx, isDomParser); | 11 expect(ctx, isDomParser); |
16 }); | 12 }); |
17 } | 13 } |
OLD | NEW |