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

Unified Diff: test/tokenizer_test.dart

Issue 11260039: Advance html5lib to newest breaking changes in core: getKeys -> keys, etc (Closed) Base URL: git@github.com:dart-lang/html5lib.git@master
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/support.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/tokenizer_test.dart
diff --git a/test/tokenizer_test.dart b/test/tokenizer_test.dart
index 6ae28df1df0632e4276860e9878ef67871e20479..9de718273133f97f7c87152509338df168f5c36a 100644
--- a/test/tokenizer_test.dart
+++ b/test/tokenizer_test.dart
@@ -145,10 +145,10 @@ List concatenateCharacterTokens(List tokens) {
for (var token in tokens) {
if (token.indexOf("ParseError") == -1 && token[0] == "Character") {
if (outputTokens.length > 0 &&
- outputTokens.last().indexOf("ParseError") == -1 &&
- outputTokens.last()[0] == "Character") {
+ outputTokens.last.indexOf("ParseError") == -1 &&
+ outputTokens.last[0] == "Character") {
- outputTokens.last()[1] = '${outputTokens.last()[1]}${token[1]}';
+ outputTokens.last[1] = '${outputTokens.last[1]}${token[1]}';
} else {
outputTokens.add(token);
}
@@ -268,7 +268,7 @@ String camelCase(String s) {
s = s.toLowerCase();
var result = new StringBuffer();
for (var match in const RegExp(r"\W+(\w)(\w+)").allMatches(s)) {
- if (result.length == 0) result.add(s.substring(0, match.start()));
+ if (result.length == 0) result.add(s.substring(0, match.start));
result.add(match.group(1).toUpperCase());
result.add(match.group(2));
}
« no previous file with comments | « test/support.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698