Index: utils/tests/pub/install/hosted/remove_removed_transitive_dependency_test.dart |
diff --git a/utils/tests/pub/install/hosted/remove_removed_transitive_dependency_test.dart b/utils/tests/pub/install/hosted/remove_removed_transitive_dependency_test.dart |
index 959d51a8199a7c58012485f613034f6245e31cd0..6120c33a29b04b491bb25fc46a354195318720c5 100644 |
--- a/utils/tests/pub/install/hosted/remove_removed_transitive_dependency_test.dart |
+++ b/utils/tests/pub/install/hosted/remove_removed_transitive_dependency_test.dart |
@@ -6,43 +6,44 @@ library pub_tests; |
import 'dart:io'; |
+import '../../descriptor.dart' as d; |
import '../../test_pub.dart'; |
main() { |
integration("removes a transitive dependency that's no longer depended" |
" on", () { |
servePackages([ |
- package("foo", "1.0.0", [dependency("shared-dep")]), |
- package("bar", "1.0.0", [ |
- dependency("shared-dep"), |
- dependency("bar-dep") |
+ packageMap("foo", "1.0.0", [dependencyMap("shared-dep")]), |
+ packageMap("bar", "1.0.0", [ |
+ dependencyMap("shared-dep"), |
+ dependencyMap("bar-dep") |
]), |
- package("shared-dep", "1.0.0"), |
- package("bar-dep", "1.0.0") |
+ packageMap("shared-dep", "1.0.0"), |
+ packageMap("bar-dep", "1.0.0") |
]); |
- appDir([dependency("foo"), dependency("bar")]).scheduleCreate(); |
+ d.appDir([dependencyMap("foo"), dependencyMap("bar")]).create(); |
schedulePub(args: ['install'], |
output: new RegExp(r"Dependencies installed!$")); |
- packagesDir({ |
+ d.packagesDir({ |
"foo": "1.0.0", |
"bar": "1.0.0", |
"shared-dep": "1.0.0", |
"bar-dep": "1.0.0", |
- }).scheduleValidate(); |
+ }).validate(); |
- appDir([dependency("foo")]).scheduleCreate(); |
+ d.appDir([dependencyMap("foo")]).create(); |
schedulePub(args: ['install'], |
output: new RegExp(r"Dependencies installed!$")); |
- packagesDir({ |
+ d.packagesDir({ |
"foo": "1.0.0", |
"bar": null, |
"shared-dep": "1.0.0", |
"bar-dep": null, |
- }).scheduleValidate(); |
+ }).validate(); |
}); |
} |