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; | |
6 | |
7 import '../../descriptor.dart' as d; | 5 import '../../descriptor.dart' as d; |
8 import '../../test_pub.dart'; | 6 import '../../test_pub.dart'; |
9 | 7 |
10 main() { | 8 main() { |
11 integration('checks out a package from Git', () { | 9 integration('checks out a package from Git', () { |
12 ensureGit(); | 10 ensureGit(); |
13 | 11 |
14 d.git('foo.git', [ | 12 d.git('foo.git', [ |
15 d.libDir('foo'), | 13 d.libDir('foo'), |
16 d.libPubspec('foo', '1.0.0') | 14 d.libPubspec('foo', '1.0.0') |
(...skipping 10 matching lines...) Expand all Loading... |
27 ]) | 25 ]) |
28 ]).validate(); | 26 ]).validate(); |
29 | 27 |
30 d.dir(packagesPath, [ | 28 d.dir(packagesPath, [ |
31 d.dir('foo', [ | 29 d.dir('foo', [ |
32 d.file('foo.dart', 'main() => "foo";') | 30 d.file('foo.dart', 'main() => "foo";') |
33 ]) | 31 ]) |
34 ]).validate(); | 32 ]).validate(); |
35 }); | 33 }); |
36 } | 34 } |
OLD | NEW |