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 library pub_tests; | |
6 | |
7 import '../../descriptor.dart' as d; | 5 import '../../descriptor.dart' as d; |
8 import '../../test_pub.dart'; | 6 import '../../test_pub.dart'; |
9 | 7 |
10 main() { | 8 main() { |
11 integration("does not show how many newer versions are available for " | 9 integration("does not show how many newer versions are available for " |
12 "packages that are locked and not being upgraded", () { | 10 "packages that are locked and not being upgraded", () { |
13 servePackages((builder) { | 11 servePackages((builder) { |
14 builder.serve("a", "1.0.0"); | 12 builder.serve("a", "1.0.0"); |
15 builder.serve("b", "1.0.0"); | 13 builder.serve("b", "1.0.0"); |
16 builder.serve("c", "2.0.0"); | 14 builder.serve("c", "2.0.0"); |
(...skipping 11 matching lines...) Expand all Loading... |
28 "b": "any", | 26 "b": "any", |
29 "c": "any" | 27 "c": "any" |
30 }).create(); | 28 }).create(); |
31 | 29 |
32 pubUpgrade(output: new RegExp(r"Changed 3 dependencies!$")); | 30 pubUpgrade(output: new RegExp(r"Changed 3 dependencies!$")); |
33 | 31 |
34 // Don't change anything. | 32 // Don't change anything. |
35 pubUpgrade(output: new RegExp(r"No dependencies changed.$")); | 33 pubUpgrade(output: new RegExp(r"No dependencies changed.$")); |
36 }); | 34 }); |
37 } | 35 } |
OLD | NEW |