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

Side by Side Diff: test/dependency_override_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, 5 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:path/path.dart' as path; 5 import 'package:path/path.dart' as path;
6 6
7 import 'descriptor.dart' as d; 7 import 'descriptor.dart' as d;
8 import 'test_pub.dart'; 8 import 'test_pub.dart';
9 9
10 main() { 10 main() {
11 initConfig();
12 forBothPubGetAndUpgrade((command) { 11 forBothPubGetAndUpgrade((command) {
13 integration("chooses best version matching override constraint", () { 12 integration("chooses best version matching override constraint", () {
14 servePackages((builder) { 13 servePackages((builder) {
15 builder.serve("foo", "1.0.0"); 14 builder.serve("foo", "1.0.0");
16 builder.serve("foo", "2.0.0"); 15 builder.serve("foo", "2.0.0");
17 builder.serve("foo", "3.0.0"); 16 builder.serve("foo", "3.0.0");
18 }); 17 });
19 18
20 d.dir(appPath, [ 19 d.dir(appPath, [
21 d.pubspec({ 20 d.pubspec({
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 schedulePub(args: [command.name], output: command.success, error: 113 schedulePub(args: [command.name], output: command.success, error:
115 """ 114 """
116 Warning: You are using these overridden dependencies: 115 Warning: You are using these overridden dependencies:
117 ! bar 1.0.0 116 ! bar 1.0.0
118 ! baz 0.0.1 from path $bazPath 117 ! baz 0.0.1 from path $bazPath
119 ! foo 1.0.0 118 ! foo 1.0.0
120 """); 119 """);
121 }); 120 });
122 }); 121 });
123 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698