Index: test/html5_utils_test.dart |
diff --git a/test/html5_utils_test.dart b/test/html5_utils_test.dart |
index 2c26932418d2d779885f71b87292d9ad9993975f..c5ce31f5339cb3daffa4ef20b32f8cb8e7c796b3 100644 |
--- a/test/html5_utils_test.dart |
+++ b/test/html5_utils_test.dart |
@@ -25,8 +25,10 @@ main() { |
test('generate type test for tag -> element mapping', () { |
var code = new StringBuffer(); |
code.add('import "dart:html" as html;\n'); |
+ code.add('import "dart:web_audio" as web_audio;\n'); |
+ code.add('import "dart:svg" as svg;\n'); |
htmlElementNames.forEach((tag, className) { |
- code.add('html.$className _$tag;\n'); |
+ code.add('$className _$tag;\n'); |
}); |
// Note: name is important for this to get picked up by run.sh |
@@ -40,13 +42,16 @@ main() { |
test('generate type test for attribute -> field mapping', () { |
var code = new StringBuffer(); |
code.add('import "dart:html" as html;\n'); |
+ code.add('import "dart:web_audio" as web_audio;\n'); |
+ code.add('import "dart:svg" as svg;\n'); |
code.add('main() {\n'); |
var allTags = htmlElementNames.keys; |
htmlElementFields.forEach((type, attrToField) { |
- code.add(' html.$type _$type = null;\n'); |
+ var id = type.replaceAll('.', '_'); |
+ code.add(' $type _$id = null;\n'); |
for (var field in attrToField.values) { |
- code.add('_$type.$field = null;\n'); |
+ code.add('_$id.$field = null;\n'); |
} |
}); |
code.add('}\n'); |