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(); |
}); |
} |