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

Unified Diff: sdk/lib/_internal/pub/test/run/nonexistent_dependency_test.dart

Issue 341123002: Support running executables from dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 6 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/test/run/nonexistent_dependency_test.dart
diff --git a/sdk/lib/_internal/pub/test/run/nonexistent_script_test.dart b/sdk/lib/_internal/pub/test/run/nonexistent_dependency_test.dart
similarity index 63%
copy from sdk/lib/_internal/pub/test/run/nonexistent_script_test.dart
copy to sdk/lib/_internal/pub/test/run/nonexistent_dependency_test.dart
index cb233b38b4530ea6eea8260ebc8f1ecf1cfcf9c7..10eb68bec357e27a1373b51b3d6aa4a38f7f4f00 100644
--- a/sdk/lib/_internal/pub/test/run/nonexistent_script_test.dart
+++ b/sdk/lib/_internal/pub/test/run/nonexistent_dependency_test.dart
@@ -9,13 +9,14 @@ import 'utils.dart';
main() {
initConfig();
- integration('Errors if the script does not exist.', () {
+ integration('Errors if the script is in an unknown package.', () {
d.dir(appPath, [
d.appPubspec()
]).create();
- var pub = pubRun(args: ["script"]);
- pub.stderr.expect("Could not find bin/script.dart.");
- pub.shouldExit(exit_codes.NO_INPUT);
+ var pub = pubRun(args: ["foo:script"]);
+ pub.stderr.expect('Could not find package "foo". Did you forget to add a '
+ 'dependency?');
+ pub.shouldExit(exit_codes.DATA);
});
}

Powered by Google App Engine
This is Rietveld 408576698