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

Unified Diff: test/packages_file_test.dart

Issue 1228683003: Fix various pub issues. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 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
« lib/src/dart.dart ('K') | « lib/src/pubspec.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/packages_file_test.dart
diff --git a/test/packages_file_test.dart b/test/packages_file_test.dart
index ef810f08e3a9354521772935c643373d04cba3c1..8408133a0f73f64a152dbd0bc0ae05e0b06a9384 100644
--- a/test/packages_file_test.dart
+++ b/test/packages_file_test.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE d.file.
+import 'package:pub/src/exit_codes.dart' as exit_codes;
+
import 'descriptor.dart' as d;
import 'test_pub.dart';
@@ -60,7 +62,10 @@ main() {
]).create();
pubCommand(command, args: ['--offline'],
- error: "Could not find package foo in cache.\n");
+ error: "Could not find package foo in cache.\n"
+ "Depended on by:\n"
+ "- myapp",
+ exitCode: exit_codes.UNAVAILABLE);
d.dir(appPath, [d.nothing('.packages')]).validate();
});
« lib/src/dart.dart ('K') | « lib/src/pubspec.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698