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

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

Issue 2024783003: Support references to unserialized libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 | « tests/compiler/dart2js/serialization/helper.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 252e6653fc791d7233bafbee988d20f670b3af5a..987372af27afb706d6e9d408bf96fb4676daaee1 100644
--- a/tests/compiler/dart2js/serialization/test_data.dart
+++ b/tests/compiler/dart2js/serialization/test_data.dart
@@ -327,12 +327,30 @@ main() => m();
m() => print(#main);
''',
}),
+
+ const Test('Indirect unserialized library', const {
+ 'main.dart': '''
+import 'a.dart';
+main() => foo();
+''',
+ }, preserializedSourceFiles: const {
+ 'a.dart': '''
+import 'memory:b.dart';
+foo() => bar();
+''',
+ }, unserializedSourceFiles: const {
+ 'b.dart': '''
+import 'memory:a.dart';
+bar() => foo();
+''',
+ }),
];
class Test {
final String name;
final Map sourceFiles;
final Map preserializedSourceFiles;
+ final Map unserializedSourceFiles;
final int expectedErrorCount;
final int expectedWarningCount;
final int expectedHintCount;
@@ -342,6 +360,7 @@ class Test {
this.name,
this.sourceFiles,
{this.preserializedSourceFiles,
+ this.unserializedSourceFiles,
this.expectedErrorCount: 0,
this.expectedWarningCount: 0,
this.expectedHintCount: 0,
« no previous file with comments | « tests/compiler/dart2js/serialization/helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698