OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 change git dependencies", () { | 9 integration("doesn't change git dependencies", () { |
10 ensureGit(); | 10 ensureGit(); |
11 | 11 |
12 d.git('foo.git', [ | 12 d.git('foo.git', [ |
13 d.libDir('foo'), | 13 d.libDir('foo'), |
14 d.libPubspec('foo', '1.0.0') | 14 d.libPubspec('foo', '1.0.0') |
15 ]).create(); | 15 ]).create(); |
16 | 16 |
17 d.appDir({ | 17 d.appDir({ |
18 "foo": {"git": "../foo.git"} | 18 "foo": {"git": "../foo.git"} |
19 }).create(); | 19 }).create(); |
20 | 20 |
21 pubGet(); | 21 // TODO(rnystrom): Remove "--packages-dir" and validate using the |
| 22 // ".packages" file instead of looking in the "packages" directory. |
| 23 pubGet(args: ["--packages-dir"]); |
22 | 24 |
23 d.dir(packagesPath, [ | 25 d.dir(packagesPath, [ |
24 d.dir('foo', [ | 26 d.dir('foo', [ |
25 d.file('foo.dart', 'main() => "foo";') | 27 d.file('foo.dart', 'main() => "foo";') |
26 ]) | 28 ]) |
27 ]).validate(); | 29 ]).validate(); |
28 | 30 |
29 d.git('foo.git', [ | 31 d.git('foo.git', [ |
30 d.libDir('foo', 'foo 2'), | 32 d.libDir('foo', 'foo 2'), |
31 d.libPubspec('foo', '1.0.0') | 33 d.libPubspec('foo', '1.0.0') |
32 ]).commit(); | 34 ]).commit(); |
33 | 35 |
34 pubDowngrade(); | 36 // TODO(rnystrom): Remove "--packages-dir" and validate using the |
| 37 // ".packages" file instead of looking in the "packages" directory. |
| 38 pubDowngrade(args: ["--packages-dir"]); |
35 | 39 |
36 d.dir(packagesPath, [ | 40 d.dir(packagesPath, [ |
37 d.dir('foo', [ | 41 d.dir('foo', [ |
38 d.file('foo.dart', 'main() => "foo";') | 42 d.file('foo.dart', 'main() => "foo";') |
39 ]) | 43 ]) |
40 ]).validate(); | 44 ]).validate(); |
41 }); | 45 }); |
42 } | 46 } |
OLD | NEW |