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

Unified Diff: utils/tests/pub/install/hosted/resolve_constraints_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/resolve_constraints_test.dart
diff --git a/utils/tests/pub/install/hosted/resolve_constraints_test.dart b/utils/tests/pub/install/hosted/resolve_constraints_test.dart
index fa95d32cd7535a94371355e361135e0c462b3568..2b6f2b03c1f9948b16aa8638c60ce31026317f3c 100644
--- a/utils/tests/pub/install/hosted/resolve_constraints_test.dart
+++ b/utils/tests/pub/install/hosted/resolve_constraints_test.dart
@@ -6,33 +6,34 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
integration('resolves version constraints from a pub server', () {
servePackages([
- package("foo", "1.2.3", [dependency("baz", ">=2.0.0")]),
- package("bar", "2.3.4", [dependency("baz", "<3.0.0")]),
- package("baz", "2.0.3"),
- package("baz", "2.0.4"),
- package("baz", "3.0.1")
+ packageMap("foo", "1.2.3", [dependencyMap("baz", ">=2.0.0")]),
+ packageMap("bar", "2.3.4", [dependencyMap("baz", "<3.0.0")]),
+ packageMap("baz", "2.0.3"),
+ packageMap("baz", "2.0.4"),
+ packageMap("baz", "3.0.1")
]);
- appDir([dependency("foo"), dependency("bar")]).scheduleCreate();
+ d.appDir([dependencyMap("foo"), dependencyMap("bar")]).create();
schedulePub(args: ['install'],
output: new RegExp("Dependencies installed!\$"));
- cacheDir({
+ d.cacheDir({
"foo": "1.2.3",
"bar": "2.3.4",
"baz": "2.0.4"
- }).scheduleValidate();
+ }).validate();
- packagesDir({
+ d.packagesDir({
"foo": "1.2.3",
"bar": "2.3.4",
"baz": "2.0.4"
- }).scheduleValidate();
+ }).validate();
});
}

Powered by Google App Engine
This is Rietveld 408576698