OLD | NEW |
1 library TypingTest; | 1 library TypingTest; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package:unittest/html_config.dart'; |
4 import 'dart:html'; | 4 import 'dart:html'; |
5 | 5 |
6 main() { | 6 main() { |
7 useHtmlConfiguration(); | 7 useHtmlConfiguration(); |
8 | 8 |
9 var isStyleSheetList = | 9 var isStyleSheetList = |
10 predicate((x) => x is List<StyleSheet>, 'is a List<StyleSheet>'); | 10 predicate((x) => x is List<StyleSheet>, 'is a List<StyleSheet>'); |
11 | 11 |
12 test('NodeList', () { | 12 test('NodeList', () { |
13 List<Node> asList = window.document.queryAll('body'); | 13 List<Node> asList = window.document.queryAll('body'); |
(...skipping 14 matching lines...) Expand all Loading... |
28 // Check it's Iterable. | 28 // Check it's Iterable. |
29 int counter = 0; | 29 int counter = 0; |
30 for (StyleSheet styleSheet in window.document.styleSheets) { | 30 for (StyleSheet styleSheet in window.document.styleSheets) { |
31 counter++; | 31 counter++; |
32 } | 32 } |
33 | 33 |
34 // There is one style sheet from the unittest framework. | 34 // There is one style sheet from the unittest framework. |
35 expect(counter, 1); | 35 expect(counter, 1); |
36 }); | 36 }); |
37 } | 37 } |
OLD | NEW |