OLD | NEW |
1 import 'dart:html'; | 1 import 'dart:html'; |
2 | 2 |
3 import 'package:minitest/minitest.dart'; | 3 import 'package:expect/minitest.dart'; |
4 | 4 |
5 main() { | 5 main() { |
6 var isElement = predicate((x) => x is Element, 'is an Element'); | 6 var isElement = predicate((x) => x is Element, 'is an Element'); |
7 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); | 7 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); |
8 var isAnchorElement = | 8 var isAnchorElement = |
9 predicate((x) => x is AnchorElement, 'is an AnchorElement'); | 9 predicate((x) => x is AnchorElement, 'is an AnchorElement'); |
10 var isUnknownElement = | 10 var isUnknownElement = |
11 predicate((x) => x is UnknownElement, 'is UnknownElement'); | 11 predicate((x) => x is UnknownElement, 'is UnknownElement'); |
12 | 12 |
13 var inscrutable; | 13 var inscrutable; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 test('typeTest2', () { | 75 test('typeTest2', () { |
76 inscrutable = inscrutable(inscrutable); | 76 inscrutable = inscrutable(inscrutable); |
77 // XML document. | 77 // XML document. |
78 var doc3 = document.implementation.createDocument(null, 'report', null); | 78 var doc3 = document.implementation.createDocument(null, 'report', null); |
79 expect(doc3 is HtmlDocument, false); | 79 expect(doc3 is HtmlDocument, false); |
80 expect(inscrutable(doc3) is HtmlDocument, false); | 80 expect(inscrutable(doc3) is HtmlDocument, false); |
81 }); | 81 }); |
82 }); | 82 }); |
83 } | 83 } |
OLD | NEW |