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

Side by Side Diff: test/implicit_dependency_test.dart

Issue 1153643002: Use "package:" imports for pub. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Code review changes Created 5 years, 7 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
« no previous file with comments | « test/implicit_barback_dependency_test.dart ('k') | test/io_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/src/barback.dart' as barback;
5 import 'package:pub_semver/pub_semver.dart'; 6 import 'package:pub_semver/pub_semver.dart';
6 7
7 import 'descriptor.dart' as d; 8 import 'descriptor.dart' as d;
8 import 'test_pub.dart'; 9 import 'test_pub.dart';
9 import '../lib/src/barback.dart' as barback;
10 10
11 main() { 11 main() {
12 initConfig(); 12 initConfig();
13 13
14 forBothPubGetAndUpgrade((command) { 14 forBothPubGetAndUpgrade((command) {
15 integration("implicitly constrains it to versions pub supports", () { 15 integration("implicitly constrains it to versions pub supports", () {
16 servePackages((builder) { 16 servePackages((builder) {
17 builder.serve("barback", current("barback")); 17 builder.serve("barback", current("barback"));
18 builder.serve("stack_trace", previous("stack_trace")); 18 builder.serve("stack_trace", previous("stack_trace"));
19 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
116 var constraint = barback.pubConstraints[packageName]; 116 var constraint = barback.pubConstraints[packageName];
117 return new Version(constraint.min.major, constraint.min.minor - 1, 0) 117 return new Version(constraint.min.major, constraint.min.minor - 1, 0)
118 .toString(); 118 .toString();
119 } 119 }
120 120
121 String nextPatch(String packageName) => 121 String nextPatch(String packageName) =>
122 barback.pubConstraints[packageName].min.nextPatch.toString(); 122 barback.pubConstraints[packageName].min.nextPatch.toString();
123 123
124 String max(String packageName) => 124 String max(String packageName) =>
125 barback.pubConstraints[packageName].max.toString(); 125 barback.pubConstraints[packageName].max.toString();
OLDNEW
« no previous file with comments | « test/implicit_barback_dependency_test.dart ('k') | test/io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698