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

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

Issue 2275603004: Add empty kernel-ssa test (Closed)
Patch Set: Also add a status file 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 | « tests/compiler/dart2js/kernel/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/memory_compiler.dart
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
index c829b16649f3c6295fa3f38454443820fd882b88..4cccd900a518015d49c334a2349b56984466b4e6 100644
--- a/tests/compiler/dart2js/memory_compiler.dart
+++ b/tests/compiler/dart2js/memory_compiler.dart
@@ -120,7 +120,11 @@ CompilerImpl compilerFor(
if (packageRoot == null &&
packageConfig == null &&
packagesDiscoveryProvider == null) {
- packageRoot = Uri.base.resolve(Platform.packageRoot);
+ if (Platform.packageRoot != null) {
+ packageRoot = Uri.base.resolve(Platform.packageRoot);
+ } else if (Platform.packageConfig != null) {
+ packageConfig = Uri.base.resolve(Platform.packageConfig);
+ }
}
MemorySourceFileProvider provider;
« no previous file with comments | « tests/compiler/dart2js/kernel/helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698