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

Unified Diff: utils/tests/pub/update/git/do_not_update_if_unneeded_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/test_pub.dart ('k') | utils/tests/pub/update/git/update_locked_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart
diff --git a/utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart b/utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart
index 3f0f9094f1929f263f88e5c2e8cc2ddefd8b460b..062e6b48018bd6dc66827babdfb14dabd7a4c58e 100644
--- a/utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart
+++ b/utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart
@@ -6,6 +6,7 @@ library pub_tests;
import 'dart:io';
+import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
@@ -13,50 +14,50 @@ main() {
"not necessary", () {
ensureGit();
- git('foo.git', [
- libDir('foo'),
- libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
- ]).scheduleCreate();
+ d.git('foo.git', [
+ d.libDir('foo'),
+ d.libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
+ ]).create();
- git('foo-dep.git', [
- libDir('foo-dep'),
- libPubspec('foo-dep', '1.0.0')
- ]).scheduleCreate();
+ d.git('foo-dep.git', [
+ d.libDir('foo-dep'),
+ d.libPubspec('foo-dep', '1.0.0')
+ ]).create();
- appDir([{"git": "../foo.git"}]).scheduleCreate();
+ d.appDir([{"git": "../foo.git"}]).create();
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
- dir(packagesPath, [
- dir('foo', [
- file('foo.dart', 'main() => "foo";')
+ d.dir(packagesPath, [
+ d.dir('foo', [
+ d.file('foo.dart', 'main() => "foo";')
]),
- dir('foo-dep', [
- file('foo-dep.dart', 'main() => "foo-dep";')
+ d.dir('foo-dep', [
+ d.file('foo-dep.dart', 'main() => "foo-dep";')
])
- ]).scheduleValidate();
+ ]).validate();
- git('foo.git', [
- libDir('foo', 'foo 2'),
- libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
- ]).scheduleCreate();
+ d.git('foo.git', [
+ d.libDir('foo', 'foo 2'),
+ d.libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
+ ]).create();
- git('foo-dep.git', [
- libDir('foo-dep', 'foo-dep 2'),
- libPubspec('foo-dep', '1.0.0')
- ]).scheduleCommit();
+ d.git('foo-dep.git', [
+ d.libDir('foo-dep', 'foo-dep 2'),
+ d.libPubspec('foo-dep', '1.0.0')
+ ]).commit();
schedulePub(args: ['update', 'foo'],
output: new RegExp(r"Dependencies updated!$"));
- dir(packagesPath, [
- dir('foo', [
- file('foo.dart', 'main() => "foo 2";')
+ d.dir(packagesPath, [
+ d.dir('foo', [
+ d.file('foo.dart', 'main() => "foo 2";')
]),
- dir('foo-dep', [
- file('foo-dep.dart', 'main() => "foo-dep";')
+ d.dir('foo-dep', [
+ d.file('foo-dep.dart', 'main() => "foo-dep";')
]),
- ]).scheduleValidate();
+ ]).validate();
});
}
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | utils/tests/pub/update/git/update_locked_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698