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

Unified Diff: utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart

Issue 12437022: Use scheduled_test for Pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-upload Created 7 years, 9 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: utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart
diff --git a/utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart b/utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart
index 91edd342f5e5018af0a3138f0c1d9f14a0c39fa9..8da00dd80ede9bf234e94e008b93a1479a27959c 100644
--- a/utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart
+++ b/utils/tests/pub/install/hosted/unlock_if_new_is_unsatisfied_test.dart
@@ -6,49 +6,50 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
integration("unlocks dependencies if necessary to ensure that a new "
"dependency is satisfied", () {
servePackages([
- package("foo", "1.0.0", [dependency("bar", "<2.0.0")]),
- package("bar", "1.0.0", [dependency("baz", "<2.0.0")]),
- package("baz", "1.0.0", [dependency("qux", "<2.0.0")]),
- package("qux", "1.0.0")
+ packageMap("foo", "1.0.0", [dependencyMap("bar", "<2.0.0")]),
+ packageMap("bar", "1.0.0", [dependencyMap("baz", "<2.0.0")]),
+ packageMap("baz", "1.0.0", [dependencyMap("qux", "<2.0.0")]),
+ packageMap("qux", "1.0.0")
]);
- 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": "1.0.0",
"baz": "1.0.0",
"qux": "1.0.0"
- }).scheduleValidate();
+ }).validate();
servePackages([
- package("foo", "2.0.0", [dependency("bar", "<3.0.0")]),
- package("bar", "2.0.0", [dependency("baz", "<3.0.0")]),
- package("baz", "2.0.0", [dependency("qux", "<3.0.0")]),
- package("qux", "2.0.0"),
- package("newdep", "2.0.0", [dependency("baz", ">=1.5.0")])
+ packageMap("foo", "2.0.0", [dependencyMap("bar", "<3.0.0")]),
+ packageMap("bar", "2.0.0", [dependencyMap("baz", "<3.0.0")]),
+ packageMap("baz", "2.0.0", [dependencyMap("qux", "<3.0.0")]),
+ packageMap("qux", "2.0.0"),
+ packageMap("newdep", "2.0.0", [dependencyMap("baz", ">=1.5.0")])
]);
- appDir([dependency("foo"), dependency("newdep")]).scheduleCreate();
+ d.appDir([dependencyMap("foo"), dependencyMap("newdep")]).create();
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
- packagesDir({
+ d.packagesDir({
"foo": "2.0.0",
"bar": "2.0.0",
"baz": "2.0.0",
"qux": "1.0.0",
"newdep": "2.0.0"
- }).scheduleValidate();
+ }).validate();
});
}
« no previous file with comments | « utils/tests/pub/install/hosted/unlock_if_incompatible_test.dart ('k') | utils/tests/pub/install/path/absolute_path_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698