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

Unified Diff: packages/html/test/support.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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 | « packages/html/test/run_all.dart ('k') | packages/isolate/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/html/test/support.dart
diff --git a/packages/html/test/support.dart b/packages/html/test/support.dart
index 1b4c0b49e50b57ba4216d55a0cc535ba5b2da7d2..1bb2550167db88708139b2f4808de5cc9a781779 100644
--- a/packages/html/test/support.dart
+++ b/packages/html/test/support.dart
@@ -10,7 +10,7 @@ import 'package:html/dom_parsing.dart';
typedef TreeBuilder TreeBuilderFactory(bool namespaceHTMLElements);
-Map _treeTypes;
+Map<String, TreeBuilderFactory> _treeTypes;
Map<String, TreeBuilderFactory> get treeTypes {
if (_treeTypes == null) {
// TODO(jmesserly): add DOM here once it's implemented
@@ -133,13 +133,16 @@ class TestSerializer extends TreeVisitor {
indent -= 2;
}
- visitDocument(node) {
+ visitDocument(node) => _visitDocumentOrFragment(node);
+
+ _visitDocumentOrFragment(node) {
indent += 1;
for (var child in node.nodes) visit(child);
indent -= 1;
}
- visitDocumentFragment(DocumentFragment node) => visitDocument(node);
+ visitDocumentFragment(DocumentFragment node) =>
+ _visitDocumentOrFragment(node);
visitElement(Element node) {
_newline();
« no previous file with comments | « packages/html/test/run_all.dart ('k') | packages/isolate/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698