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

Unified Diff: sdk/lib/_internal/pub_generated/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
Index: sdk/lib/_internal/pub_generated/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
diff --git a/sdk/lib/_internal/pub/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart b/sdk/lib/_internal/pub_generated/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
similarity index 56%
copy from sdk/lib/_internal/pub/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
copy to sdk/lib/_internal/pub_generated/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
index 3ebc04cd0dfa0cbb12a4311ebbd0345fe9002622..277f2d189a60934f6ddb077085ed2314dce494be 100644
--- a/sdk/lib/_internal/pub/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
@@ -14,31 +14,33 @@ import '../../test_pub.dart';
main() {
initConfig();
// Regression test for issue 20947.
- integration('checks out an unfetched and locked revision of a cached '
- 'repository', () {
+ integration(
+ 'checks out an unfetched and locked revision of a cached ' 'repository',
+ () {
ensureGit();
// In order to get a lockfile that refers to a newer revision than is in the
// cache, we'll switch between two caches. First we ensure that the repo is
// in the first cache.
- d.git('foo.git', [
- d.libDir('foo'),
- d.libPubspec('foo', '1.0.0')
- ]).create();
+ d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create();
- d.appDir({"foo": {"git": "../foo.git"}}).create();
+ d.appDir({
+ "foo": {
+ "git": "../foo.git"
+ }
+ }).create();
pubGet();
// Switch to a new cache.
- schedule(() => renameDir(
- p.join(sandboxDir, cachePath), p.join(sandboxDir, "$cachePath.old")));
+ schedule(
+ () =>
+ renameDir(p.join(sandboxDir, cachePath), p.join(sandboxDir, "$cachePath.old")));
// Make the lockfile point to a new revision of the git repository.
- d.git('foo.git', [
- d.libDir('foo', 'foo 2'),
- d.libPubspec('foo', '1.0.0')
- ]).commit();
+ d.git(
+ 'foo.git',
+ [d.libDir('foo', 'foo 2'), d.libPubspec('foo', '1.0.0')]).commit();
pubUpgrade(output: contains("Changed 1 dependency!"));
@@ -52,18 +54,18 @@ main() {
// Get the updated version of the git dependency based on the lockfile.
pubGet();
- d.dir(cachePath, [
- d.dir('git', [
- d.dir('cache', [d.gitPackageRepoCacheDir('foo')]),
- d.gitPackageRevisionCacheDir('foo'),
- d.gitPackageRevisionCacheDir('foo', 2)
- ])
- ]).validate();
+ d.dir(
+ cachePath,
+ [
+ d.dir(
+ 'git',
+ [
+ d.dir('cache', [d.gitPackageRepoCacheDir('foo')]),
+ d.gitPackageRevisionCacheDir('foo'),
+ d.gitPackageRevisionCacheDir('foo', 2)])]).validate();
- d.dir(packagesPath, [
- d.dir('foo', [
- d.file('foo.dart', 'main() => "foo 2";')
- ])
- ]).validate();
+ d.dir(
+ packagesPath,
+ [d.dir('foo', [d.file('foo.dart', 'main() => "foo 2";')])]).validate();
});
}

Powered by Google App Engine
This is Rietveld 408576698