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

Unified Diff: sdk/lib/_internal/pub/test/global/activate/installs_dependencies_for_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/installs_dependencies_for_git_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/installs_dependencies_test.dart b/sdk/lib/_internal/pub/test/global/activate/installs_dependencies_for_git_test.dart
similarity index 57%
copy from sdk/lib/_internal/pub/test/global/activate/installs_dependencies_test.dart
copy to sdk/lib/_internal/pub/test/global/activate/installs_dependencies_for_git_test.dart
index d7726f657c72fae542d724841296b0c4727eb439..b50c1f1f4c8ae9ecba24d9787da034ec37638ca4 100644
--- a/sdk/lib/_internal/pub/test/global/activate/installs_dependencies_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/installs_dependencies_for_git_test.dart
@@ -4,18 +4,28 @@
import 'package:scheduled_test/scheduled_test.dart';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
initConfig();
- integration('activating a package installs its dependencies too', () {
+ integration('activating a Git package installs its dependencies', () {
servePackages([
- packageMap("foo", "1.0.0", {"bar": "any"}),
packageMap("bar", "1.0.0", {"baz": "any"}),
packageMap("baz", "1.0.0")
]);
- schedulePub(args: ["global", "activate", "foo"], output: allOf([
+ d.git('foo.git', [
+ d.libPubspec("foo", "1.0.0", deps: {
+ "bar": "any"
+ }),
+ d.dir("bin", [
+ d.file("foo.dart", "main() => print('ok');")
+ ])
+ ]).create();
+
+ schedulePub(args: ["global", "activate", "-sgit", "../foo.git"],
+ output: allOf([
contains("Downloading bar 1.0.0..."),
contains("Downloading baz 1.0.0...")
]));

Powered by Google App Engine
This is Rietveld 408576698