OLD | NEW |
1 import 'dart:html'; | 1 import 'dart:html'; |
2 | 2 |
3 import 'package:expect/minitest.dart'; | 3 import 'package:expect/minitest.dart'; |
4 | 4 |
5 main() { | 5 main() { |
6 group('supported', () { | 6 group('supported', () { |
7 test('supported', () { | 7 test('supported', () { |
8 expect(XsltProcessor.supported, true); | 8 expect(XsltProcessor.supported, true); |
9 }); | 9 }); |
10 }); | 10 }); |
11 | 11 |
12 group('functional', () { | 12 group('functional', () { |
13 var isXsltProcessor = | 13 var isXsltProcessor = |
14 predicate((x) => x is XsltProcessor, 'is an XsltProcessor'); | 14 predicate((x) => x is XsltProcessor, 'is an XsltProcessor'); |
15 | 15 |
16 var expectation = XsltProcessor.supported ? returnsNormally : throws; | 16 var expectation = XsltProcessor.supported ? returnsNormally : throws; |
17 | 17 |
18 test('constructorTest', () { | 18 test('constructorTest', () { |
19 expect(() { | 19 expect(() { |
20 var processor = new XsltProcessor(); | 20 var processor = new XsltProcessor(); |
21 expect(processor, isNotNull); | 21 expect(processor, isNotNull); |
22 expect(processor, isXsltProcessor); | 22 expect(processor, isXsltProcessor); |
23 }, expectation); | 23 }, expectation); |
24 }); | 24 }); |
25 }); | 25 }); |
26 | |
27 } | 26 } |
OLD | NEW |