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

Unified Diff: sdk/lib/_internal/pub_generated/test/cache/repair/updates_binstubs_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/cache/repair/updates_binstubs_test.dart
diff --git a/sdk/lib/_internal/pub/test/cache/repair/updates_binstubs_test.dart b/sdk/lib/_internal/pub_generated/test/cache/repair/updates_binstubs_test.dart
similarity index 70%
copy from sdk/lib/_internal/pub/test/cache/repair/updates_binstubs_test.dart
copy to sdk/lib/_internal/pub_generated/test/cache/repair/updates_binstubs_test.dart
index 1d612a1b6162a8d6523aa8b8bc274dab54b246ea..874796e74a53e8a277114e10261ab4513e577d76 100644
--- a/sdk/lib/_internal/pub/test/cache/repair/updates_binstubs_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/cache/repair/updates_binstubs_test.dart
@@ -27,24 +27,20 @@ main() {
"executables": {
"foo-script": "script"
}
- }, contents: [
- d.dir("bin", [
- d.file("script.dart", "main(args) => print('ok \$args');")
- ])
- ]);
+ },
+ contents: [
+ d.dir("bin", [d.file("script.dart", "main(args) => print('ok \$args');")])]);
});
schedulePub(args: ["global", "activate", "foo"]);
- d.dir(cachePath, [
- d.dir('bin', [
- d.file(binStubName('foo-script'), _OUTDATED_BINSTUB)
- ])
- ]).create();
+ d.dir(
+ cachePath,
+ [
+ d.dir('bin', [d.file(binStubName('foo-script'), _OUTDATED_BINSTUB)])]).create();
// Repair them.
- schedulePub(args: ["cache", "repair"],
- output: '''
+ schedulePub(args: ["cache", "repair"], output: '''
Downloading foo 1.0.0...
Reinstalled 1 package.
Reactivating foo 1.0.0...
@@ -55,11 +51,11 @@ main() {
Reactivated 1 package.''');
// The broken versions should have been replaced.
- d.dir(cachePath, [
- d.dir('bin', [
- // 255 is the VM's exit code upon seeing an out-of-date snapshot.
- d.matcherFile(binStubName('foo-script'), contains('255'))
- ])
- ]).validate();
+ d.dir(
+ cachePath,
+ [d.dir('bin', [// 255 is the VM's exit code upon seeing an out-of-date snapshot.
+ d.matcherFile(
+ binStubName('foo-script'),
+ contains('255'))])]).validate();
});
}

Powered by Google App Engine
This is Rietveld 408576698