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

Unified Diff: test/support.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/parser_test.dart ('k') | test/tokenizer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/support.dart
diff --git a/test/support.dart b/test/support.dart
index a565ace1d2cedb0bcec547701cc722faf822fdc6..7ffa3e4eeff41afec10b65b8c7ace76345c2dea9 100644
--- a/test/support.dart
+++ b/test/support.dart
@@ -60,7 +60,7 @@ class TestData implements Iterable<Map> {
var lines = _text.split('\n');
int numLines = lines.length;
// Remove trailing newline to match Python
- if (lines.last() == '') {
+ if (lines.last == '') {
lines.removeLast();
}
for (var line in lines) {
@@ -162,7 +162,7 @@ class TestSerializer extends TreeVisitor {
_str.add(node);
if (node.attributes.length > 0) {
indent += 2;
- var keys = new List.from(node.attributes.getKeys());
+ var keys = new List.from(node.attributes.keys);
keys.sort((x, y) => x.compareTo(y));
for (var key in keys) {
var v = node.attributes[key];
« no previous file with comments | « test/parser_test.dart ('k') | test/tokenizer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698