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

Side by Side Diff: sdk/lib/_internal/pub/test/implicit_dependency_test.dart

Issue 602253002: Use pub_semver package in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:pub_semver/pub_semver.dart';
6
5 import 'descriptor.dart' as d; 7 import 'descriptor.dart' as d;
6 import 'test_pub.dart'; 8 import 'test_pub.dart';
7 import '../lib/src/barback.dart' as barback; 9 import '../lib/src/barback.dart' as barback;
8 import '../lib/src/version.dart';
9 10
10 main() { 11 main() {
11 initConfig(); 12 initConfig();
12 13
13 forBothPubGetAndUpgrade((command) { 14 forBothPubGetAndUpgrade((command) {
14 integration("implicitly constrains it to versions pub supports", () { 15 integration("implicitly constrains it to versions pub supports", () {
15 servePackages((builder) { 16 servePackages((builder) {
16 builder.serve("barback", current("barback")); 17 builder.serve("barback", current("barback"));
17 builder.serve("stack_trace", previous("stack_trace")); 18 builder.serve("stack_trace", previous("stack_trace"));
18 builder.serve("stack_trace", current("stack_trace")); 19 builder.serve("stack_trace", current("stack_trace"));
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 var constraint = barback.pubConstraints[packageName]; 116 var constraint = barback.pubConstraints[packageName];
116 return new Version(constraint.min.major, constraint.min.minor - 1, 0) 117 return new Version(constraint.min.major, constraint.min.minor - 1, 0)
117 .toString(); 118 .toString();
118 } 119 }
119 120
120 String nextPatch(String packageName) => 121 String nextPatch(String packageName) =>
121 barback.pubConstraints[packageName].min.nextPatch.toString(); 122 barback.pubConstraints[packageName].min.nextPatch.toString();
122 123
123 String max(String packageName) => 124 String max(String packageName) =>
124 barback.pubConstraints[packageName].max.toString(); 125 barback.pubConstraints[packageName].max.toString();
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/implicit_barback_dependency_test.dart ('k') | sdk/lib/_internal/pub/test/lock_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698