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

Unified Diff: test/descriptor.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/dependency_override_test.dart ('k') | test/descriptor/packages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/descriptor.dart
diff --git a/test/descriptor.dart b/test/descriptor.dart
index d4855be06af4abc9a50c2d340bfc5a4423b00504..ec7fea1e6c38d9ff6d4f3c8a57396e7cb72d398c 100644
--- a/test/descriptor.dart
+++ b/test/descriptor.dart
@@ -203,3 +203,11 @@ DirectoryDescriptor appDir([Map dependencies]) =>
/// path to a path dependency, relative to the application directory.
Descriptor packagesFile([Map<String, String> dependencies]) =>
new PackagesFileDescriptor(dependencies);
+
+/// Describes a `.packages` file in the application directory, including the
+/// implicit entry for the app itself.
+Descriptor appPackagesFile(Map<String, String> dependencies) {
+ var copied = new Map.from(dependencies);
+ copied["myapp"] = ".";
+ return dir(appPath, [packagesFile(copied)]);
+}
« no previous file with comments | « test/dependency_override_test.dart ('k') | test/descriptor/packages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698