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

Unified Diff: utils/tests/pub/install/pub_install_test.dart

Issue 11362233: Place "packages" directories inside "tool". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « utils/pub/entrypoint.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/install/pub_install_test.dart
diff --git a/utils/tests/pub/install/pub_install_test.dart b/utils/tests/pub/install/pub_install_test.dart
index e06e4fc539ce9f8514a8a506b3d82867adacc254..1ce3a6a0bf23091aaedf3ae823bada1bf95cd77d 100644
--- a/utils/tests/pub/install/pub_install_test.dart
+++ b/utils/tests/pub/install/pub_install_test.dart
@@ -189,6 +189,36 @@ main() {
run();
});
+ test('"tool/" and its subdirectories', () {
+ dir(appPath, [
+ appPubspec([]),
+ libDir('foo'),
+ dir("tool", [dir("subtool")])
+ ]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ output: new RegExp(r"Dependencies installed!$"));
+
+ dir(appPath, [
+ dir("tool", [
+ dir("packages", [
+ dir("myapp", [
+ file('foo.dart', 'main() => "foo";')
+ ])
+ ]),
+ dir("subtool", [
+ dir("packages", [
+ dir("myapp", [
+ file('foo.dart', 'main() => "foo";')
+ ])
+ ])
+ ])
+ ])
+ ]).scheduleValidate();
+
+ run();
+ });
+
test('"web/" and its subdirectories', () {
dir(appPath, [
appPubspec([]),
« no previous file with comments | « utils/pub/entrypoint.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698