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 76540dc896011715c8d8b357c81d8f62c902b963..07a5530f556242269b8065c98cbe31b57ddc920f 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', () { |
- d.dir(appPath, [ |
- d.appPubspec([]), |
- d.libDir('foo'), |
- d.dir("bin") |
- ]).create(); |
+ dir(appPath, [ |
+ appPubspec([]), |
+ libDir('foo'), |
+ dir("bin") |
+ ]).scheduleCreate(); |
// 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!$")); |
- d.dir(appPath, [ |
- d.dir("bin", [ |
- d.dir("packages", [ |
- d.dir("myapp", [ |
- d.file('foo.dart', 'main() => "foo";') |
+ dir(appPath, [ |
+ dir("bin", [ |
+ dir("packages", [ |
+ dir("myapp", [ |
+ file('foo.dart', 'main() => "foo";') |
]) |
]) |
]) |
- ]).validate(); |
+ ]).scheduleValidate(); |
}); |
integration('replaces a broken secondary "packages" symlink', () { |
- d.dir(appPath, [ |
- d.appPubspec([]), |
- d.libDir('foo'), |
- d.dir("bin") |
- ]).create(); |
+ dir(appPath, [ |
+ appPubspec([]), |
+ libDir('foo'), |
+ dir("bin") |
+ ]).scheduleCreate(); |
// 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!$")); |
- d.dir(appPath, [ |
- d.dir("bin", [ |
- d.dir("packages", [ |
- d.dir("myapp", [ |
- d.file('foo.dart', 'main() => "foo";') |
+ dir(appPath, [ |
+ dir("bin", [ |
+ dir("packages", [ |
+ dir("myapp", [ |
+ file('foo.dart', 'main() => "foo";') |
]) |
]) |
]) |
- ]).validate(); |
+ ]).scheduleValidate(); |
}); |
} |