OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library pub_tests; | |
6 | |
7 import '../descriptor.dart' as d; | |
8 import '../test_pub.dart'; | |
9 | |
10 main() { | |
11 initConfig(); | |
12 | |
13 forBothPubGetAndUpgrade((command) { | |
14 integration( | |
15 "removes a transitive dependency that's no longer depended " "on", | |
16 () { | |
17 servePackages((builder) { | |
18 builder.serve("foo", "1.0.0", deps: { | |
19 "shared-dep": "any" | |
20 }); | |
21 builder.serve("bar", "1.0.0", deps: { | |
22 "shared-dep": "any", | |
23 "bar-dep": "any" | |
24 }); | |
25 builder.serve("shared-dep", "1.0.0"); | |
26 builder.serve("bar-dep", "1.0.0"); | |
27 }); | |
28 | |
29 d.appDir({ | |
30 "foo": "any", | |
31 "bar": "any" | |
32 }).create(); | |
33 | |
34 pubCommand(command); | |
35 | |
36 d.packagesDir({ | |
37 "foo": "1.0.0", | |
38 "bar": "1.0.0", | |
39 "shared-dep": "1.0.0", | |
40 "bar-dep": "1.0.0", | |
41 }).validate(); | |
42 | |
43 d.appDir({ | |
44 "foo": "any" | |
45 }).create(); | |
46 | |
47 pubCommand(command); | |
48 | |
49 d.packagesDir({ | |
50 "foo": "1.0.0", | |
51 "bar": null, | |
52 "shared-dep": "1.0.0", | |
53 "bar-dep": null, | |
54 }).validate(); | |
55 }); | |
56 }); | |
57 } | |
OLD | NEW |