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

Unified Diff: test/html5_utils_test.dart

Issue 11412285: New pub release - changes to comply with new SDK. (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 1 month 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/emitter_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « test/emitter_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698