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

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

Issue 448933002: Support Git in pub global activate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise! 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/activate_hosted_after_git_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
similarity index 77%
copy from sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
index 6dec06bdceb5dfd636b4f1cc5f213ea873742562..9afb49fd78b22cfa5a3b95d99b14e2f9868daea3 100644
--- a/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_path_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/activate_hosted_after_git_test.dart
@@ -10,7 +10,7 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('activating a hosted package deactivates the path one', () {
+ integration('activating a hosted package deactivates the Git one', () {
servePackages([
packageMap("foo", "2.0.0")
], contents: [
@@ -19,18 +19,18 @@ main() {
])
]);
- d.dir("foo", [
+ d.git('foo.git', [
d.libPubspec("foo", "1.0.0"),
d.dir("bin", [
- d.file("foo.dart", "main() => print('path');")
+ d.file("foo.dart", "main() => print('git');")
])
]).create();
- schedulePub(args: ["global", "activate", "-spath", "../foo"]);
+ schedulePub(args: ["global", "activate", "-sgit", "../foo.git"]);
var path = canonicalize(p.join(sandboxDir, "foo"));
schedulePub(args: ["global", "activate", "foo"], output: """
- Package foo is currently active at path "$path".
+ Package foo is currently active from Git repository "../foo.git".
Downloading foo 2.0.0...
Resolving dependencies...
Activated foo 2.0.0.""");

Powered by Google App Engine
This is Rietveld 408576698