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

Unified Diff: test/dev_dependency_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/descriptor/packages.dart ('k') | test/downgrade/doesnt_change_git_dependencies_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dev_dependency_test.dart
diff --git a/test/dev_dependency_test.dart b/test/dev_dependency_test.dart
index fd464aae91f82abd19f3aac3b613316fedd1c729..b00c690caf44c5c219b6cc1222536e1872b2661d 100644
--- a/test/dev_dependency_test.dart
+++ b/test/dev_dependency_test.dart
@@ -29,14 +29,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": "../foo",
+ "bar": "../bar"
+ }).validate();
});
integration("includes dev dependency's transitive dependencies", () {
@@ -63,14 +59,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": "../foo",
+ "bar": "../bar"
+ }).validate();
});
integration("ignores transitive dependency's dev dependencies", () {
@@ -98,11 +90,8 @@ main() {
pubGet();
- d.dir(packagesPath, [
- d.dir("foo", [
- d.file("foo.dart", 'main() => "foo";')
- ]),
- d.nothing("bar")
- ]).validate();
+ d.appPackagesFile({
+ "foo": "../foo"
+ }).validate();
});
}
« no previous file with comments | « test/descriptor/packages.dart ('k') | test/downgrade/doesnt_change_git_dependencies_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698