Index: utils/tests/pub/update/hosted/update_removed_constraints_test.dart |
diff --git a/utils/tests/pub/update/hosted/update_removed_constraints_test.dart b/utils/tests/pub/update/hosted/update_removed_constraints_test.dart |
index 06dadffd7ac3ac3938d6b096e3e5a1afa8e3a7a4..7bd39656072373c7ac474cca709b7f1ae887a467 100644 |
--- a/utils/tests/pub/update/hosted/update_removed_constraints_test.dart |
+++ b/utils/tests/pub/update/hosted/update_removed_constraints_test.dart |
@@ -6,37 +6,38 @@ library pub_tests; |
import 'dart:io'; |
+import '../../descriptor.dart' as d; |
import '../../test_pub.dart'; |
main() { |
integration("updates dependencies whose constraints have been removed", () { |
servePackages([ |
- package("foo", "1.0.0", [dependency("shared-dep")]), |
- package("bar", "1.0.0", [dependency("shared-dep", "<2.0.0")]), |
- package("shared-dep", "1.0.0"), |
- package("shared-dep", "2.0.0") |
+ packageMap("foo", "1.0.0", [dependencyMap("shared-dep")]), |
+ packageMap("bar", "1.0.0", [dependencyMap("shared-dep", "<2.0.0")]), |
+ packageMap("shared-dep", "1.0.0"), |
+ packageMap("shared-dep", "2.0.0") |
]); |
- appDir([dependency("foo"), dependency("bar")]).scheduleCreate(); |
+ d.appDir([dependencyMap("foo"), dependencyMap("bar")]).create(); |
schedulePub(args: ['update'], |
output: new RegExp(r"Dependencies updated!$")); |
- packagesDir({ |
+ d.packagesDir({ |
"foo": "1.0.0", |
"bar": "1.0.0", |
"shared-dep": "1.0.0" |
- }).scheduleValidate(); |
+ }).validate(); |
- appDir([dependency("foo")]).scheduleCreate(); |
+ d.appDir([dependencyMap("foo")]).create(); |
schedulePub(args: ['update'], |
output: new RegExp(r"Dependencies updated!$")); |
- packagesDir({ |
+ d.packagesDir({ |
"foo": "1.0.0", |
"bar": null, |
"shared-dep": "2.0.0" |
- }).scheduleValidate(); |
+ }).validate(); |
}); |
} |