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

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

Issue 12794007: Use scheduled_test for Pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. 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/install_test.dart
diff --git a/utils/tests/pub/install/hosted/install_test.dart b/utils/tests/pub/install/hosted/install_test.dart
index 5bc120c3d7a9c2d4cc57e6b9e8e193bfd2adab3f..5db55532ddc4920e33612f727f6f1335456ad0f6 100644
--- a/utils/tests/pub/install/hosted/install_test.dart
+++ b/utils/tests/pub/install/hosted/install_test.dart
@@ -6,26 +6,27 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
initConfig();
integration('installs a package from a pub server', () {
- servePackages([package("foo", "1.2.3")]);
+ servePackages([packageMap("foo", "1.2.3")]);
- appDir([dependency("foo", "1.2.3")]).scheduleCreate();
+ d.appDir([dependencyMap("foo", "1.2.3")]).create();
schedulePub(args: ['install'],
output: new RegExp("Dependencies installed!\$"));
- cacheDir({"foo": "1.2.3"}).scheduleValidate();
- packagesDir({"foo": "1.2.3"}).scheduleValidate();
+ d.cacheDir({"foo": "1.2.3"}).validate();
+ d.packagesDir({"foo": "1.2.3"}).validate();
});
integration('URL encodes the package name', () {
servePackages([]);
- appDir([dependency("bad name!", "1.2.3")]).scheduleCreate();
+ d.appDir([dependencyMap("bad name!", "1.2.3")]).create();
schedulePub(args: ['install'],
error: new RegExp('Could not find package "bad name!" at '

Powered by Google App Engine
This is Rietveld 408576698