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

Unified Diff: sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart

Issue 22893029: Revise output of list-package-dirs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart
diff --git a/sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart b/sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart
index 60c77865fd8b0c17caf8245724e493bb721af342..a5761d2b30098fd1e8beca46cd4e69bc3674e174 100644
--- a/sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart
+++ b/sdk/lib/_internal/pub/test/list_package_dirs/includes_dev_dependencies_test.dart
@@ -4,6 +4,7 @@
import 'package:path/path.dart' as path;
+import '../../lib/src/io.dart';
import '../descriptor.dart' as d;
import '../test_pub.dart';
@@ -26,9 +27,19 @@ main() {
pubInstall();
+ // Note: Using canonicalize here because pub gets the path to the
+ // entrypoint package from the working directory, which has had symlinks
+ // resolve. On Mac, "/tmp" is actually a symlink to "/private/tmp", so we
+ // need to accomodate that.
schedulePub(args: ["list-package-dirs", "--format=json"],
outputJson: {
- "foo": path.join(sandboxDir, "foo")
+ "packages": {
+ "foo": path.join(sandboxDir, "foo", "lib"),
+ "myapp": canonicalize(path.join(sandboxDir, appPath, "lib"))
+ },
+ "input_files": [
+ canonicalize(path.join(sandboxDir, appPath, "pubspec.lock"))
+ ]
});
});
}

Powered by Google App Engine
This is Rietveld 408576698