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

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

Issue 11737013: Validate that a package doesn't depend on itself. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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
« utils/pub/validator/dependency.dart ('K') | « utils/pub/validator/dependency.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 6f5764a95a4beabf134f6f640d83c019a743f784..32a833ba2a063f77de1a02cf47ceb5f017870ddc 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -531,5 +531,17 @@ main() {
});
});
});
+
+ test('has a hosted dependency on itself', () {
+ dir(appPath, [
+ libPubspec("test_pkg", "1.0.0", [
+ {'hosted': 'foo'}
Bob Nystrom 2013/01/03 20:52:45 Shouldn't this be "test_pkg"?
nweiz 2013/01/03 21:08:12 Yes. The fact that this didn't have a version cons
Bob Nystrom 2013/01/03 21:56:17 That makes me wonder if the expect should be more
nweiz 2013/01/03 22:18:22 I'm not a big fan of searching for strings within
+ ])
+ ]).scheduleCreate();
+
+ expectValidationWarning(dependency);
+
+ run();
+ });
});
}
« utils/pub/validator/dependency.dart ('K') | « utils/pub/validator/dependency.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698