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

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

Issue 2256223002: Ensure resolution of metadata on parts for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
« pkg/compiler/lib/src/compiler.dart ('K') | « pkg/compiler/lib/src/compiler.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 cfb2d08e70dbfd9d9ddd2b095a70f0943c64d08a..9038877f5892e9dac54446ff2ab449b58dce82e6 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -718,6 +718,36 @@ export 'main.dart';
main() {}
'''}),
+ const Test('Metadata on part tags', const {},
+ preserializedSourceFiles: const {
+ 'main.dart': '''
+library main;
+
+@deprecated
+part 'a.dart';
+
+main() {}
+'''},
+ unserializedSourceFiles: const {
+ 'a.dart': '''
+part of main;
+'''}),
+
+ const Test('Metadata on part-of tags', const {},
+ preserializedSourceFiles: const {
+ 'main.dart': '''
+library main;
+
+part 'a.dart';
+
+main() {}
+'''},
+ unserializedSourceFiles: const {
+ 'a.dart': '''
+@deprecated
+part of main;
+'''}),
+
const Test('Ambiguous elements', const {},
preserializedSourceFiles: const {
'main.dart': '''
« pkg/compiler/lib/src/compiler.dart ('K') | « pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698