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

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

Issue 11043026: Don't warn on the absence of "lib" in the root package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « utils/pub/io.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/pub_install_test.dart
diff --git a/utils/tests/pub/pub_install_test.dart b/utils/tests/pub/pub_install_test.dart
index 38605a1ab7cb3bfba18089718659fc7c5e591b63..85f54811e05f34188e254d60ab26fc621d55bad5 100644
--- a/utils/tests/pub/pub_install_test.dart
+++ b/utils/tests/pub/pub_install_test.dart
@@ -95,6 +95,18 @@ main() {
run();
});
+ test('does not warn if the root package lacks a "lib" directory', () {
+ dir(appPath, [
+ appPubspec([])
+ ]).scheduleCreate();
+
+ schedulePub(args: ['install'],
+ error: '',
+ output: const RegExp(r"Dependencies installed!$"));
+
+ run();
+ });
+
test('overwrites the existing packages directory', () {
dir(appPath, [
appPubspec([]),
« no previous file with comments | « utils/pub/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698