| 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'; | |
| 5 import 'dart:convert'; | 4 import 'dart:convert'; |
| 6 import 'dart:io'; | 5 import 'dart:io'; |
| 7 import 'dart:mirrors'; | 6 import 'dart:mirrors'; |
| 8 import 'package:path/path.dart' as pathos; | 7 import 'package:path/path.dart' as pathos; |
| 9 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 10 import 'package:html5lib/src/char_encodings.dart'; | 9 import 'package:html5lib/src/char_encodings.dart'; |
| 11 import 'package:html5lib/src/constants.dart' as constants; | |
| 12 import 'package:html5lib/src/token.dart'; | 10 import 'package:html5lib/src/token.dart'; |
| 13 import 'package:html5lib/src/tokenizer.dart'; | 11 import 'package:html5lib/src/tokenizer.dart'; |
| 14 import 'package:html5lib/src/utils.dart'; | |
| 15 import 'package:utf/utf.dart'; | 12 import 'package:utf/utf.dart'; |
| 16 import 'support.dart'; | 13 import 'support.dart'; |
| 17 | 14 |
| 18 class TokenizerTestParser { | 15 class TokenizerTestParser { |
| 19 String _state; | 16 String _state; |
| 20 var _lastStartTag; | 17 var _lastStartTag; |
| 21 List outputTokens; | 18 List outputTokens; |
| 22 | 19 |
| 23 TokenizerTestParser(String initialState, [lastStartTag]) | 20 TokenizerTestParser(String initialState, [lastStartTag]) |
| 24 : _state = initialState, | 21 : _state = initialState, |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 for (var initialState in testInfo["initialStates"]) { | 258 for (var initialState in testInfo["initialStates"]) { |
| 262 test(testInfo["description"], () { | 259 test(testInfo["description"], () { |
| 263 testInfo["initialState"] = camelCase(initialState); | 260 testInfo["initialState"] = camelCase(initialState); |
| 264 runTokenizerTest(testInfo); | 261 runTokenizerTest(testInfo); |
| 265 }); | 262 }); |
| 266 } | 263 } |
| 267 } | 264 } |
| 268 }); | 265 }); |
| 269 } | 266 } |
| 270 } | 267 } |
| OLD | NEW |