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

Unified Diff: tests/compiler/dart2js/dart_backend_test.dart

Issue 11044010: Support new import syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « lib/compiler/implementation/tree/unparser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/dart_backend_test.dart
diff --git a/tests/compiler/dart2js/dart_backend_test.dart b/tests/compiler/dart2js/dart_backend_test.dart
index cddaccace968a71a058aa9061f679e444c13ee42..76222d92a4f78ae85d95e059ab567b52c5e523b3 100644
--- a/tests/compiler/dart2js/dart_backend_test.dart
+++ b/tests/compiler/dart2js/dart_backend_test.dart
@@ -637,7 +637,7 @@ main() {
Platform.operatingSystem;
}
''';
- var expectedResult = '#import("dart:io",prefix:"p");'
+ var expectedResult = 'import "dart:io" as p;'
'main(){p.Platform.operatingSystem;}';
testDart2Dart(src,
(String result) { Expect.equals(expectedResult, result); });
@@ -767,7 +767,7 @@ main() {
A.userAgent;
}
''';
- var expectedResult = '#import("dart:html",prefix:"p");'
+ var expectedResult = 'import "dart:html" as p;'
'class A{static String get userAgent=>p.window.navigator.userAgent;}'
'main(){A.userAgent;}';
testDart2Dart(src,
« no previous file with comments | « lib/compiler/implementation/tree/unparser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698