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

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

Issue 12092080: Validate packages against their SDK constraints. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. 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
« no previous file with comments | « utils/tests/pub/update/pub_update_test.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 bc4e30e4fa2f6662ff9ed229a460fbcb7ff074e3..bfbcfcb465249879709d081940e386f43c3a0cc6 100644
--- a/utils/tests/pub/validator_test.dart
+++ b/utils/tests/pub/validator_test.dart
@@ -120,7 +120,7 @@ main() {
integration('has an unconstrained dependency on "unittest"', () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': 'unittest'}
])
]).scheduleCreate();
@@ -330,7 +330,7 @@ main() {
}));
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'git': 'git://github.com/dart-lang/foo'}
])
]).scheduleCreate();
@@ -354,7 +354,7 @@ main() {
}));
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'git': 'git://github.com/dart-lang/foo'}
])
]).scheduleCreate();
@@ -378,7 +378,7 @@ main() {
}));
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'git': 'git://github.com/dart-lang/foo'}
])
]).scheduleCreate();
@@ -399,7 +399,7 @@ main() {
}));
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{
'git': {'url': 'git://github.com/dart-lang/foo'},
'version': '>=1.0.0 <2.0.0'
@@ -422,7 +422,7 @@ main() {
}));
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{
'git': {'url': 'git://github.com/dart-lang/foo'},
'version': '0.2.3'
@@ -440,7 +440,7 @@ main() {
group('and it should not suggest a version', () {
integration("if there's no lockfile", () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': 'foo'}
])
]).scheduleCreate();
@@ -452,7 +452,7 @@ main() {
integration("if the lockfile doesn't have an entry for the "
"dependency", () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': 'foo'}
]),
file("pubspec.lock", json.stringify({
@@ -478,7 +478,7 @@ main() {
integration('and it should suggest a constraint based on the locked '
'version', () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': 'foo'}
]),
file("pubspec.lock", json.stringify({
@@ -503,7 +503,7 @@ main() {
integration('and it should suggest a concrete constraint if the locked '
'version is pre-1.0.0', () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': 'foo'}
]),
file("pubspec.lock", json.stringify({
@@ -529,7 +529,7 @@ main() {
integration('has a hosted dependency on itself', () {
dir(appPath, [
- libPubspec("test_pkg", "1.0.0", [
+ libPubspec("test_pkg", "1.0.0", deps: [
{'hosted': {'name': 'test_pkg', 'version': '>=1.0.0'}}
])
]).scheduleCreate();
« no previous file with comments | « utils/tests/pub/update/pub_update_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698