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

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

Issue 11931040: adds file path source to pub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/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 9f0a3665a5b0312a048414d005ffd961669c647f..6f0d5be422c7099a8c3507bf96dbb37b51f1afd7 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -316,6 +316,16 @@ main() {
run();
});
+ test('has a dependency with a path source', () {
+ dir(appPath, [
+ libPubspec("test_pkg", "1.0.0", [
+ {'path': '/foo/bar'}
+ ])
+ ]).scheduleCreate();
+ expectValidationError(dependency);
Bob Nystrom 2013/01/17 19:15:10 Great test.
+ run();
+ });
+
group('has a dependency with a non-hosted source', () {
group('where a hosted version of that dependency exists', () {
test("and should suggest the hosted package's primary version", () {
« utils/pub/validator/dependency.dart ('K') | « utils/tests/pub/test_pub.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698