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

Unified Diff: test/run/loads_package_imports_in_a_dependency_test.dart

Issue 1217923002: Fix a "pub run" bug. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 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
« no previous file with comments | « lib/src/executable.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/loads_package_imports_in_a_dependency_test.dart
diff --git a/test/run/runs_named_app_in_dependency_test.dart b/test/run/loads_package_imports_in_a_dependency_test.dart
similarity index 71%
copy from test/run/runs_named_app_in_dependency_test.dart
copy to test/run/loads_package_imports_in_a_dependency_test.dart
index f1b9cbc49e918f4cc8b314bf7901af806f02a74e..6f6427713dffb3f57755f72640a50bb4115dd955 100644
--- a/test/run/runs_named_app_in_dependency_test.dart
+++ b/test/run/loads_package_imports_in_a_dependency_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -9,8 +9,15 @@ main() {
integration('runs a named Dart application in a dependency', () {
d.dir("foo", [
d.libPubspec("foo", "1.0.0"),
+ d.dir("lib", [
+ d.file('foo.dart', "final value = 'foobar';")
+ ]),
d.dir("bin", [
- d.file("bar.dart", "main() => print('foobar');")
+ d.file("bar.dart", """
+import "package:foo/foo.dart";
+
+main() => print(value);
+""")
])
]).create();
« no previous file with comments | « lib/src/executable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698