Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: pkg/third_party/html5lib/test/tokenizer_test.dart

Issue 157983005: pkg/third_party/html5lib: lots of cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: bump version Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« pkg/third_party/html5lib/lib/src/constants.dart ('K') | « pkg/third_party/html5lib/test/support.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698