| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library pub_tests; | |
| 6 | |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | |
| 8 | |
| 9 import '../descriptor.dart' as d; | |
| 10 import '../test_pub.dart'; | |
| 11 | |
| 12 main() { | |
| 13 initConfig(); | |
| 14 integration("does not show how many other versions are available", () { | |
| 15 servePackages((builder) { | |
| 16 builder.serve("downgraded", "1.0.0"); | |
| 17 builder.serve("downgraded", "2.0.0"); | |
| 18 builder.serve("downgraded", "3.0.0-dev"); | |
| 19 }); | |
| 20 | |
| 21 d.appDir({ | |
| 22 "downgraded": "3.0.0-dev" | |
| 23 }).create(); | |
| 24 | |
| 25 pubGet(); | |
| 26 | |
| 27 // Loosen the constraints. | |
| 28 d.appDir({ | |
| 29 "downgraded": ">=2.0.0" | |
| 30 }).create(); | |
| 31 | |
| 32 pubDowngrade(output: contains("downgraded 2.0.0 (was 3.0.0-dev)")); | |
| 33 }); | |
| 34 } | |
| OLD | NEW |