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

Unified Diff: tests/compiler/dart2js/serialization/test_data.dart

Issue 2256203002: Ensure metadata on imports/exports is resolved for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 4 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 | « pkg/compiler/lib/src/resolution/constructors.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/serialization/test_data.dart
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
index 065bf660d0d43675dbb7669e179d9f3204a7fa91..bf8ecf8330739ef172d0f0389aacefb3bbe94879 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -693,6 +693,30 @@ const a = 1e+400;
main() => a;
''',
}),
+
+ const Test('Erroneous constructor', const {},
+ preserializedSourceFiles: const {
+ 'main.dart': '''
+main() => new Null();
+'''}),
+
+ const Test('Metadata on imports', const {},
+ preserializedSourceFiles: const {
+ 'main.dart': '''
+@deprecated
+import 'main.dart';
+
+main() {}
+'''}),
+
+ const Test('Metadata on exports', const {},
+ preserializedSourceFiles: const {
+ 'main.dart': '''
+@deprecated
+export 'main.dart';
+
+main() {}
+'''}),
];
class Test {
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698