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

Unified Diff: utils/tests/pub/install/relative_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
« no previous file with comments | « utils/tests/pub/install/pub_install_test.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/install/relative_symlink_test.dart
diff --git a/utils/tests/pub/install/relative_symlink_test.dart b/utils/tests/pub/install/relative_symlink_test.dart
index 166a7caa0636c833037fb031b2dc71da486b4f34..57919996b2871647febf9b2f1861ae5d9edafafa 100644
--- a/utils/tests/pub/install/relative_symlink_test.dart
+++ b/utils/tests/pub/install/relative_symlink_test.dart
@@ -6,7 +6,9 @@ library pub_tests;
import 'dart:io';
-import '../../../../pkg/unittest/lib/unittest.dart';
+import '../../../../pkg/scheduled_test/lib/scheduled_test.dart';
+
+import '../descriptor.dart' as d;
import '../test_pub.dart';
main() {
@@ -18,45 +20,45 @@ main() {
initConfig();
integration('uses a relative symlink for the self link', () {
- dir(appPath, [
- appPubspec([]),
- libDir('foo')
- ]).scheduleCreate();
+ d.dir(appPath, [
+ d.appPubspec([]),
+ d.libDir('foo')
+ ]).create();
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
scheduleRename(appPath, "moved");
- dir("moved", [
- dir("packages", [
- dir("myapp", [
- file('foo.dart', 'main() => "foo";')
+ d.dir("moved", [
+ d.dir("packages", [
+ d.dir("myapp", [
+ d.file('foo.dart', 'main() => "foo";')
])
])
- ]).scheduleValidate();
+ ]).validate();
});
integration('uses a relative symlink for secondary packages directory', () {
- dir(appPath, [
- appPubspec([]),
- libDir('foo'),
- dir("bin")
- ]).scheduleCreate();
+ d.dir(appPath, [
+ d.appPubspec([]),
+ d.libDir('foo'),
+ d.dir("bin")
+ ]).create();
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
scheduleRename(appPath, "moved");
- dir("moved", [
- dir("bin", [
- dir("packages", [
- dir("myapp", [
- file('foo.dart', 'main() => "foo";')
+ d.dir("moved", [
+ 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/install/pub_install_test.dart ('k') | utils/tests/pub/oauth2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698