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

Side by Side Diff: test/implicit_barback_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
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 var constraint = barback.pubConstraints["barback"]; 14 var constraint = barback.pubConstraints["barback"];
15 var current = constraint.min.toString(); 15 var current = constraint.min.toString();
16 var previous = new Version(constraint.min.major, constraint.min.minor - 1, 0) 16 var previous = new Version(constraint.min.major, constraint.min.minor - 1, 0)
17 .toString(); 17 .toString();
18 var nextPatch = constraint.min.nextPatch.toString(); 18 var nextPatch = constraint.min.nextPatch.toString();
19 var max = constraint.max.toString(); 19 var max = constraint.max.toString();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 }); 150 });
151 151
152 d.appDir({"barback": previous}).create(); 152 d.appDir({"barback": previous}).create();
153 153
154 pubGet(error: """ 154 pubGet(error: """
155 Incompatible version constraints on barback: 155 Incompatible version constraints on barback:
156 - myapp depends on version $previous 156 - myapp depends on version $previous
157 - pub itself depends on version >=$current <$max"""); 157 - pub itself depends on version >=$current <$max""");
158 }); 158 });
159 } 159 }
OLDNEW
« no previous file with comments | « test/hosted/fail_gracefully_on_url_resolve_test.dart ('k') | test/implicit_dependency_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698