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

Unified Diff: test/get/path/relative_path_test.dart

Issue 2377063002: Make "--no-packages-dir" the default. (Closed)
Patch Set: Revise again. Created 4 years, 3 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 | « test/get/path/absolute_symlink_test.dart ('k') | test/get/path/relative_symlink_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/get/path/relative_path_test.dart
diff --git a/test/get/path/relative_path_test.dart b/test/get/path/relative_path_test.dart
index 42938ebdd68c1ed89fd2d4e43496118776420675..dd278fdd55c33df52fa622df0c1826fecb3fbb65 100644
--- a/test/get/path/relative_path_test.dart
+++ b/test/get/path/relative_path_test.dart
@@ -25,14 +25,12 @@ main() {
pubGet();
- d.dir(packagesPath, [
- d.dir("foo", [
- d.file("foo.dart", 'main() => "foo";')
- ])
- ]).validate();
+ d.appPackagesFile({
+ "foo": "../foo"
+ }).validate();
});
- integration("path is relative to containing d.pubspec", () {
+ integration("path is relative to containing pubspec", () {
d.dir("relative", [
d.dir("foo", [
d.libDir("foo"),
@@ -54,14 +52,10 @@ main() {
pubGet();
- d.dir(packagesPath, [
- d.dir("foo", [
- d.file("foo.dart", 'main() => "foo";')
- ]),
- d.dir("bar", [
- d.file("bar.dart", 'main() => "bar";')
- ])
- ]).validate();
+ d.appPackagesFile({
+ "foo": "../relative/foo",
+ "bar": "../relative/bar"
+ }).validate();
});
integration("relative path preserved in the lockfile", () {
« no previous file with comments | « test/get/path/absolute_symlink_test.dart ('k') | test/get/path/relative_symlink_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698