OLD | NEW |
1 library tokenizer_test; | 1 library tokenizer_test; |
2 | 2 |
3 // Note: mirrors used to match the getattr usage in the original test | 3 // Note: mirrors used to match the getattr usage in the original test |
4 import 'dart:async'; | 4 import 'dart:async'; |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:json' as json; | 6 import 'dart:json' as json; |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'dart:utf'; | |
9 import 'package:path/path.dart' as pathos; | 8 import 'package:path/path.dart' as pathos; |
10 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
11 import 'package:html5lib/src/char_encodings.dart'; | 10 import 'package:html5lib/src/char_encodings.dart'; |
12 import 'package:html5lib/src/constants.dart' as constants; | 11 import 'package:html5lib/src/constants.dart' as constants; |
13 import 'package:html5lib/src/token.dart'; | 12 import 'package:html5lib/src/token.dart'; |
14 import 'package:html5lib/src/tokenizer.dart'; | 13 import 'package:html5lib/src/tokenizer.dart'; |
15 import 'package:html5lib/src/utils.dart'; | 14 import 'package:html5lib/src/utils.dart'; |
| 15 import 'package:utf/utf.dart'; |
16 import 'support.dart'; | 16 import 'support.dart'; |
17 | 17 |
18 class TokenizerTestParser { | 18 class TokenizerTestParser { |
19 String _state; | 19 String _state; |
20 var _lastStartTag; | 20 var _lastStartTag; |
21 List outputTokens; | 21 List outputTokens; |
22 | 22 |
23 TokenizerTestParser(String initialState, [lastStartTag]) | 23 TokenizerTestParser(String initialState, [lastStartTag]) |
24 : _state = initialState, | 24 : _state = initialState, |
25 _lastStartTag = lastStartTag; | 25 _lastStartTag = lastStartTag; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 for (var initialState in testInfo["initialStates"]) { | 261 for (var initialState in testInfo["initialStates"]) { |
262 test(testInfo["description"], () { | 262 test(testInfo["description"], () { |
263 testInfo["initialState"] = camelCase(initialState); | 263 testInfo["initialState"] = camelCase(initialState); |
264 runTokenizerTest(testInfo); | 264 runTokenizerTest(testInfo); |
265 }); | 265 }); |
266 } | 266 } |
267 } | 267 } |
268 }); | 268 }); |
269 } | 269 } |
270 } | 270 } |
OLD | NEW |