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

Unified Diff: utils/tests/pub/update/git/do_not_update_if_unneeded_test.dart

Issue 12782005: Revert "Use scheduled_test for Pub tests." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 062e6b48018bd6dc66827babdfb14dabd7a4c58e..3f0f9094f1929f263f88e5c2e8cc2ddefd8b460b 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,7 +6,6 @@ library pub_tests;
import 'dart:io';
-import '../../descriptor.dart' as d;
import '../../test_pub.dart';
main() {
@@ -14,50 +13,50 @@ main() {
"not necessary", () {
ensureGit();
- d.git('foo.git', [
- d.libDir('foo'),
- d.libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
- ]).create();
+ git('foo.git', [
+ libDir('foo'),
+ libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
+ ]).scheduleCreate();
- d.git('foo-dep.git', [
- d.libDir('foo-dep'),
- d.libPubspec('foo-dep', '1.0.0')
- ]).create();
+ git('foo-dep.git', [
+ libDir('foo-dep'),
+ libPubspec('foo-dep', '1.0.0')
+ ]).scheduleCreate();
- d.appDir([{"git": "../foo.git"}]).create();
+ appDir([{"git": "../foo.git"}]).scheduleCreate();
schedulePub(args: ['install'],
output: new RegExp(r"Dependencies installed!$"));
- d.dir(packagesPath, [
- d.dir('foo', [
- d.file('foo.dart', 'main() => "foo";')
+ dir(packagesPath, [
+ dir('foo', [
+ file('foo.dart', 'main() => "foo";')
]),
- d.dir('foo-dep', [
- d.file('foo-dep.dart', 'main() => "foo-dep";')
+ dir('foo-dep', [
+ file('foo-dep.dart', 'main() => "foo-dep";')
])
- ]).validate();
+ ]).scheduleValidate();
- d.git('foo.git', [
- d.libDir('foo', 'foo 2'),
- d.libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
- ]).create();
+ git('foo.git', [
+ libDir('foo', 'foo 2'),
+ libPubspec("foo", "1.0.0", deps: [{"git": "../foo-dep.git"}])
+ ]).scheduleCreate();
- d.git('foo-dep.git', [
- d.libDir('foo-dep', 'foo-dep 2'),
- d.libPubspec('foo-dep', '1.0.0')
- ]).commit();
+ git('foo-dep.git', [
+ libDir('foo-dep', 'foo-dep 2'),
+ libPubspec('foo-dep', '1.0.0')
+ ]).scheduleCommit();
schedulePub(args: ['update', 'foo'],
output: new RegExp(r"Dependencies updated!$"));
- d.dir(packagesPath, [
- d.dir('foo', [
- d.file('foo.dart', 'main() => "foo 2";')
+ dir(packagesPath, [
+ dir('foo', [
+ file('foo.dart', 'main() => "foo 2";')
]),
- d.dir('foo-dep', [
- d.file('foo-dep.dart', 'main() => "foo-dep";')
+ dir('foo-dep', [
+ file('foo-dep.dart', 'main() => "foo-dep";')
]),
- ]).validate();
+ ]).scheduleValidate();
});
}
« 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