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

Unified Diff: utils/tests/pub/update/hosted/remove_removed_dependency_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/update/hosted/remove_removed_dependency_test.dart
diff --git a/utils/tests/pub/update/hosted/remove_removed_dependency_test.dart b/utils/tests/pub/update/hosted/remove_removed_dependency_test.dart
index e39c1844c854738cd9db96547a47dd9935662b22..4841a97a482eeff24e91d0166d738eb6c22e2660 100644
--- a/utils/tests/pub/update/hosted/remove_removed_dependency_test.dart
+++ b/utils/tests/pub/update/hosted/remove_removed_dependency_test.dart
@@ -6,33 +6,34 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
integration("removes a dependency that's been removed from the pubspec", () {
servePackages([
- package("foo", "1.0.0"),
- package("bar", "1.0.0")
+ packageMap("foo", "1.0.0"),
+ packageMap("bar", "1.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"
- }).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
- }).scheduleValidate();
+ }).validate();
});
}

Powered by Google App Engine
This is Rietveld 408576698