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

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

Issue 1040563004: Make "pub run foo" run "pub run foo:foo" rather than "pub run bin/foo" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove bogus changes. Created 5 years, 9 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/runs_shorthand_app_in_dependency_test.dart
diff --git a/sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart b/sdk/lib/_internal/pub/test/run/runs_shorthand_app_in_dependency_test.dart
similarity index 72%
copy from sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
copy to sdk/lib/_internal/pub/test/run/runs_shorthand_app_in_dependency_test.dart
index 6c3c1e7a34589238a982112268a5bae279c772c3..6c9f64b8bc7e8564d45c471cf8f35aa801a4b43f 100644
--- a/sdk/lib/_internal/pub/test/run/runs_named_app_in_dev_dependency_test.dart
+++ b/sdk/lib/_internal/pub/test/run/runs_shorthand_app_in_dependency_test.dart
@@ -7,18 +7,18 @@ import '../test_pub.dart';
main() {
initConfig();
- integration('runs a named Dart application in a dev dependency', () {
+ integration('runs a shorthand Dart application in a dependency', () {
d.dir("foo", [
d.libPubspec("foo", "1.0.0"),
d.dir("bin", [
- d.file("bar.dart", "main() => print('foobar');")
+ d.file("foo.dart", "main() => print('foo');")
])
]).create();
d.dir(appPath, [
d.pubspec({
"name": "myapp",
- "dev_dependencies": {
+ "dependencies": {
"foo": {"path": "../foo"}
}
})
@@ -26,8 +26,8 @@ main() {
pubGet();
- var pub = pubRun(args: ["foo:bar"]);
- pub.stdout.expect("foobar");
+ var pub = pubRun(args: ["foo"]);
+ pub.stdout.expect("foo");
pub.shouldExit();
});
}

Powered by Google App Engine
This is Rietveld 408576698