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

Side by Side Diff: test/implicit_barback_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 var constraint = barback.pubConstraints["barback"]; 12 var constraint = barback.pubConstraints["barback"];
15 var current = constraint.min.toString(); 13 var current = constraint.min.toString();
16 var previous = new Version(constraint.min.major, constraint.min.minor - 1, 0) 14 var previous = new Version(constraint.min.major, constraint.min.minor - 1, 0)
17 .toString(); 15 .toString();
18 var nextPatch = constraint.min.nextPatch.toString(); 16 var nextPatch = constraint.min.nextPatch.toString();
19 var max = constraint.max.toString(); 17 var max = constraint.max.toString();
20 18
21 var sourceSpanVersion = barback.pubConstraints["source_span"].min.toString(); 19 var sourceSpanVersion = barback.pubConstraints["source_span"].min.toString();
22 var stackTraceVersion = barback.pubConstraints["stack_trace"].min.toString(); 20 var stackTraceVersion = barback.pubConstraints["stack_trace"].min.toString();
23 21
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 }); 148 });
151 149
152 d.appDir({"barback": previous}).create(); 150 d.appDir({"barback": previous}).create();
153 151
154 pubGet(error: """ 152 pubGet(error: """
155 Incompatible version constraints on barback: 153 Incompatible version constraints on barback:
156 - myapp depends on version $previous 154 - myapp depends on version $previous
157 - pub itself depends on version >=$current <$max"""); 155 - pub itself depends on version >=$current <$max""");
158 }); 156 });
159 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698