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

Unified Diff: sdk/lib/_internal/pub/test/global/activate/constraint_with_path_test.dart

Issue 428313004: Support activating packages from local paths. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix deactivate. Created 6 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/global/activate/constraint_with_path_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/bad_version_test.dart b/sdk/lib/_internal/pub/test/global/activate/constraint_with_path_test.dart
similarity index 52%
copy from sdk/lib/_internal/pub/test/global/activate/bad_version_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/constraint_with_path_test.dart
index 1bf2eeaa85db5a4f97f44404de7780bdf91aaeea..68f2ac385d558c6df1c2a77c58f1f461d75e8b5f 100644
--- a/sdk/lib/_internal/pub/test/global/activate/bad_version_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/constraint_with_path_test.dart
@@ -7,13 +7,15 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('fails if the version constraint cannot be parsed', () {
- schedulePub(args: ["global", "activate", "foo", "1.0"],
+ integration('fails if a version is passed with the path source', () {
+ schedulePub(args: ["global", "activate", "-spath", "foo", "1.2.3"],
error: """
- Could not parse version "1.0". Unknown text at "1.0".
+ Unexpected argument "1.2.3".
- Usage: pub global activate <package> [version]
- -h, --help Print usage information for this command.
+ Usage: pub global activate <package...>
+ -h, --help Print usage information for this command.
+ -s, --source The source used to find the package.
+ [hosted (default), path]
Run "pub help" to see global options.
""",

Powered by Google App Engine
This is Rietveld 408576698