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

Unified Diff: test/runner/precompiled_paths_test.dart

Issue 2184543002: Use the package_resolver package. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 5 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 | « test/runner/loader_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/precompiled_paths_test.dart
diff --git a/test/runner/precompiled_paths_test.dart b/test/runner/precompiled_paths_test.dart
index a60a0c832c5d6b5e3a72a751ac581c459b76e5de..a5763dab164acdc2e770fe8777d480023e783d4d 100644
--- a/test/runner/precompiled_paths_test.dart
+++ b/test/runner/precompiled_paths_test.dart
@@ -7,6 +7,7 @@
import 'dart:io';
+import 'package:package_resolver/package_resolver.dart';
import 'package:path/path.dart' as p;
import 'package:scheduled_test/descriptor.dart' as d;
import 'package:scheduled_test/scheduled_process.dart';
@@ -39,7 +40,7 @@ void main() {
d.dir("precompiled", []).create();
var dart2js = new ScheduledProcess.start(p.join(sdkDir, 'bin', 'dart2js'), [
- "--package-root=${p.join(p.current, 'packages')}",
+ PackageResolver.current.processArgument,
"to_precompile.dart",
"--out=precompiled/test.dart.browser_test.dart.js"
], workingDirectory: sandbox);
« no previous file with comments | « test/runner/loader_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698