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

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

Issue 488323002: Make servePackages's contents argument saner. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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_git_after_hosted_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/activate_git_after_hosted_test.dart b/sdk/lib/_internal/pub/test/global/activate/activate_git_after_hosted_test.dart
index a553f5f4bb34b5f374ef03e4718f1a0454be68e3..12dc4bee562eda64e430bb91b50153636e996432 100644
--- a/sdk/lib/_internal/pub/test/global/activate/activate_git_after_hosted_test.dart
+++ b/sdk/lib/_internal/pub/test/global/activate/activate_git_after_hosted_test.dart
@@ -12,11 +12,13 @@ main() {
servePackages([
packageMap("foo", "1.0.0")
- ], contents: [
- d.dir("bin", [
- d.file("foo.dart", "main(args) => print('hosted');")
- ])
- ]);
+ ], contents: {
+ 'foo-1.0.0': [
+ d.dir("bin", [
+ d.file("foo.dart", "main(args) => print('hosted');")
+ ])
+ ]
+ });
d.git('foo.git', [
d.libPubspec("foo", "1.0.0"),

Powered by Google App Engine
This is Rietveld 408576698