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

Unified Diff: sdk/lib/_internal/pub/test/hosted/remove_removed_transitive_dependency_test.dart

Issue 488323002: Make servePackages's contents argument saner. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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/hosted/remove_removed_transitive_dependency_test.dart
diff --git a/sdk/lib/_internal/pub/test/hosted/remove_removed_transitive_dependency_test.dart b/sdk/lib/_internal/pub/test/hosted/remove_removed_transitive_dependency_test.dart
index e975b05556e4ed04885ab840cc86c3677ab53d93..bf51e1192ca5c9453c8561e55b6405eaee0a3d8b 100644
--- a/sdk/lib/_internal/pub/test/hosted/remove_removed_transitive_dependency_test.dart
+++ b/sdk/lib/_internal/pub/test/hosted/remove_removed_transitive_dependency_test.dart
@@ -13,17 +13,21 @@ main() {
forBothPubGetAndUpgrade((command) {
integration("removes a transitive dependency that's no longer depended "
"on", () {
- servePackages([
- packageMap("foo", "1.0.0", {
- "shared-dep": "any"
- }),
- packageMap("bar", "1.0.0", {
- "shared-dep": "any",
- "bar-dep": "any"
- }),
- packageMap("shared-dep", "1.0.0"),
- packageMap("bar-dep", "1.0.0")
- ]);
+ servePackages((builder) {
+ builder.serve("foo", "1.0.0", pubspec: {
+ "dependencies": {
+ "shared-dep": "any"
+ }
+ });
+ builder.serve("bar", "1.0.0", pubspec: {
+ "dependencies": {
+ "shared-dep": "any",
+ "bar-dep": "any"
+ }
+ });
+ builder.serve("shared-dep", "1.0.0");
+ builder.serve("bar-dep", "1.0.0");
+ });
d.appDir({
"foo": "any",

Powered by Google App Engine
This is Rietveld 408576698