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 forBothPubGetAndUpgrade((command) { | 9 forBothPubGetAndUpgrade((command) { |
10 integration("removes a transitive dependency that's no longer depended " | 10 integration("removes a transitive dependency that's no longer depended " |
(...skipping 10 matching lines...) Expand all Loading... |
21 builder.serve("bar_dep", "1.0.0"); | 21 builder.serve("bar_dep", "1.0.0"); |
22 }); | 22 }); |
23 | 23 |
24 d.appDir({ | 24 d.appDir({ |
25 "foo": "any", | 25 "foo": "any", |
26 "bar": "any" | 26 "bar": "any" |
27 }).create(); | 27 }).create(); |
28 | 28 |
29 pubCommand(command); | 29 pubCommand(command); |
30 | 30 |
31 d.packagesDir({ | 31 d.appPackagesFile({ |
32 "foo": "1.0.0", | 32 "foo": "1.0.0", |
33 "bar": "1.0.0", | 33 "bar": "1.0.0", |
34 "shared_dep": "1.0.0", | 34 "shared_dep": "1.0.0", |
35 "bar_dep": "1.0.0", | 35 "bar_dep": "1.0.0", |
36 }).validate(); | 36 }).validate(); |
37 | 37 |
38 d.appDir({"foo": "any"}).create(); | 38 d.appDir({"foo": "any"}).create(); |
39 | 39 |
40 pubCommand(command); | 40 pubCommand(command); |
41 | 41 |
42 d.packagesDir({ | 42 d.appPackagesFile({ |
43 "foo": "1.0.0", | 43 "foo": "1.0.0", |
44 "bar": null, | 44 "shared_dep": "1.0.0" |
45 "shared_dep": "1.0.0", | |
46 "bar_dep": null, | |
47 }).validate(); | 45 }).validate(); |
48 }); | 46 }); |
49 }); | 47 }); |
50 } | 48 } |
OLD | NEW |