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

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

Issue 11466020: Require a homepage field in pubspecs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/tests/pub/test_pub.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/validator_test.dart
diff --git a/utils/tests/pub/validator_test.dart b/utils/tests/pub/validator_test.dart
index eaada1a0aae22bb1ff092b9e078b024a9ffc5687..2b8b70a6d73579a4e99d05854e2371cd2b0da74f 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -56,6 +56,15 @@ main() {
run();
});
+ test('is missing the "description" field', () {
+ var package = package("test_pkg", "1.0.0");
+ package.remove("description");
+ dir(appPath, [pubspec(package)]).scheduleCreate();
+
+ expectValidationError(pubspecField);
+ run();
+ });
+
test('is missing the "author" field', () {
var package = package("test_pkg", "1.0.0");
package.remove("author");
« no previous file with comments | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698