| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 '../../descriptor.dart' as d; | 5 import '../../descriptor.dart' as d; |
| 6 import '../../test_pub.dart'; | 6 import '../../test_pub.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 integration("doesn't upgrade dependencies whose constraints have been " | 9 integration("doesn't upgrade dependencies whose constraints have been " |
| 10 "removed", () { | 10 "removed", () { |
| 11 servePackages((builder) { | 11 servePackages((builder) { |
| 12 builder.serve("foo", "1.0.0", deps: {"shared_dep": "any"}); | 12 builder.serve("foo", "1.0.0", deps: {"shared_dep": "any"}); |
| 13 builder.serve("bar", "1.0.0", deps: {"shared_dep": "<2.0.0"}); | 13 builder.serve("bar", "1.0.0", deps: {"shared_dep": "<2.0.0"}); |
| 14 builder.serve("shared_dep", "1.0.0"); | 14 builder.serve("shared_dep", "1.0.0"); |
| 15 builder.serve("shared_dep", "2.0.0"); | 15 builder.serve("shared_dep", "2.0.0"); |
| 16 }); | 16 }); |
| 17 | 17 |
| 18 d.appDir({"foo": "any", "bar": "any"}).create(); | 18 d.appDir({"foo": "any", "bar": "any"}).create(); |
| 19 | 19 |
| 20 pubGet(); | 20 pubGet(); |
| 21 | 21 |
| 22 d.packagesDir({ | 22 d.appPackagesFile({ |
| 23 "foo": "1.0.0", | 23 "foo": "1.0.0", |
| 24 "bar": "1.0.0", | 24 "bar": "1.0.0", |
| 25 "shared_dep": "1.0.0" | 25 "shared_dep": "1.0.0" |
| 26 }).validate(); | 26 }).validate(); |
| 27 | 27 |
| 28 d.appDir({"foo": "any"}).create(); | 28 d.appDir({"foo": "any"}).create(); |
| 29 | 29 |
| 30 pubGet(); | 30 pubGet(); |
| 31 | 31 |
| 32 d.packagesDir({ | 32 d.appPackagesFile({ |
| 33 "foo": "1.0.0", | 33 "foo": "1.0.0", |
| 34 "bar": null, | |
| 35 "shared_dep": "1.0.0" | 34 "shared_dep": "1.0.0" |
| 36 }).validate(); | 35 }).validate(); |
| 37 }); | 36 }); |
| 38 } | 37 } |
| OLD | NEW |