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 library pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 initConfig(); | |
12 integration("upgrades locked Git packages", () { | 11 integration("upgrades locked Git packages", () { |
13 ensureGit(); | 12 ensureGit(); |
14 | 13 |
15 d.git('foo.git', [ | 14 d.git('foo.git', [ |
16 d.libDir('foo'), | 15 d.libDir('foo'), |
17 d.libPubspec('foo', '1.0.0') | 16 d.libPubspec('foo', '1.0.0') |
18 ]).create(); | 17 ]).create(); |
19 | 18 |
20 d.git('bar.git', [ | 19 d.git('bar.git', [ |
21 d.libDir('bar'), | 20 d.libDir('bar'), |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 d.dir(packagesPath, [ | 52 d.dir(packagesPath, [ |
54 d.dir('foo', [ | 53 d.dir('foo', [ |
55 d.file('foo.dart', 'main() => "foo 2";') | 54 d.file('foo.dart', 'main() => "foo 2";') |
56 ]), | 55 ]), |
57 d.dir('bar', [ | 56 d.dir('bar', [ |
58 d.file('bar.dart', 'main() => "bar 2";') | 57 d.file('bar.dart', 'main() => "bar 2";') |
59 ]) | 58 ]) |
60 ]).validate(); | 59 ]).validate(); |
61 }); | 60 }); |
62 } | 61 } |
OLD | NEW |