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

Unified Diff: utils/tests/pub/install/broken_symlink_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/broken_symlink_test.dart
diff --git a/utils/tests/pub/install/broken_symlink_test.dart b/utils/tests/pub/install/broken_symlink_test.dart
index 07a5530f556242269b8065c98cbe31b57ddc920f..76540dc896011715c8d8b357c81d8f62c902b963 100644
--- a/utils/tests/pub/install/broken_symlink_test.dart
+++ b/utils/tests/pub/install/broken_symlink_test.dart
@@ -7,18 +7,18 @@ library pub_tests;
import 'dart:io';
import '../../../../pkg/pathos/lib/path.dart' as path;
-import '../../../../pkg/unittest/lib/unittest.dart';
+import '../descriptor.dart' as d;
import '../test_pub.dart';
main() {
initConfig();
integration('replaces a broken "packages" symlink', () {
- dir(appPath, [
- appPubspec([]),
- libDir('foo'),
- dir("bin")
- ]).scheduleCreate();
+ d.dir(appPath, [
+ d.appPubspec([]),
+ d.libDir('foo'),
+ d.dir("bin")
+ ]).create();
// Create a broken "packages" symlink in "bin".
scheduleSymlink("nonexistent", path.join(appPath, "packages"));
@@ -26,23 +26,23 @@ main() {
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
- dir(appPath, [
- dir("bin", [
- dir("packages", [
- dir("myapp", [
- file('foo.dart', 'main() => "foo";')
+ d.dir(appPath, [
+ d.dir("bin", [
+ d.dir("packages", [
+ d.dir("myapp", [
+ d.file('foo.dart', 'main() => "foo";')
])
])
])
- ]).scheduleValidate();
+ ]).validate();
});
integration('replaces a broken secondary "packages" symlink', () {
- dir(appPath, [
- appPubspec([]),
- libDir('foo'),
- dir("bin")
- ]).scheduleCreate();
+ d.dir(appPath, [
+ d.appPubspec([]),
+ d.libDir('foo'),
+ d.dir("bin")
+ ]).create();
// Create a broken "packages" symlink in "bin".
scheduleSymlink("nonexistent", path.join(appPath, "bin", "packages"));
@@ -50,14 +50,14 @@ main() {
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
- dir(appPath, [
- dir("bin", [
- dir("packages", [
- dir("myapp", [
- file('foo.dart', 'main() => "foo";')
+ d.dir(appPath, [
+ d.dir("bin", [
+ d.dir("packages", [
+ d.dir("myapp", [
+ d.file('foo.dart', 'main() => "foo";')
])
])
])
- ]).scheduleValidate();
+ ]).validate();
});
}
« no previous file with comments | « utils/tests/pub/dev_dependency_test.dart ('k') | utils/tests/pub/install/git/check_out_and_update_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698