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

Side by Side Diff: test/implicit_dependency_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 6 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
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/src/barback.dart' as barback;
6 import 'package:pub_semver/pub_semver.dart'; 6 import 'package:pub_semver/pub_semver.dart';
7 7
8 import 'descriptor.dart' as d; 8 import 'descriptor.dart' as d;
9 import 'test_pub.dart'; 9 import 'test_pub.dart';
10 10
11 main() { 11 main() {
12 initConfig();
13
14 forBothPubGetAndUpgrade((command) { 12 forBothPubGetAndUpgrade((command) {
15 integration("implicitly constrains it to versions pub supports", () { 13 integration("implicitly constrains it to versions pub supports", () {
16 servePackages((builder) { 14 servePackages((builder) {
17 builder.serve("barback", current("barback")); 15 builder.serve("barback", current("barback"));
18 builder.serve("stack_trace", previous("stack_trace")); 16 builder.serve("stack_trace", previous("stack_trace"));
19 builder.serve("stack_trace", current("stack_trace")); 17 builder.serve("stack_trace", current("stack_trace"));
20 builder.serve("stack_trace", nextPatch("stack_trace")); 18 builder.serve("stack_trace", nextPatch("stack_trace"));
21 builder.serve("stack_trace", max("stack_trace")); 19 builder.serve("stack_trace", max("stack_trace"));
22 builder.serve("source_span", current("source_span")); 20 builder.serve("source_span", current("source_span"));
23 }); 21 });
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 var constraint = barback.pubConstraints[packageName]; 114 var constraint = barback.pubConstraints[packageName];
117 return new Version(constraint.min.major, constraint.min.minor - 1, 0) 115 return new Version(constraint.min.major, constraint.min.minor - 1, 0)
118 .toString(); 116 .toString();
119 } 117 }
120 118
121 String nextPatch(String packageName) => 119 String nextPatch(String packageName) =>
122 barback.pubConstraints[packageName].min.nextPatch.toString(); 120 barback.pubConstraints[packageName].min.nextPatch.toString();
123 121
124 String max(String packageName) => 122 String max(String packageName) =>
125 barback.pubConstraints[packageName].max.toString(); 123 barback.pubConstraints[packageName].max.toString();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698