| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |