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 packages transitively from Git', () { | 9 integration('checks out packages transitively 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', deps: { | 14 d.libPubspec('foo', '1.0.0', deps: { |
(...skipping 24 matching lines...) Loading... |
41 d.dir(packagesPath, [ | 39 d.dir(packagesPath, [ |
42 d.dir('foo', [ | 40 d.dir('foo', [ |
43 d.file('foo.dart', 'main() => "foo";') | 41 d.file('foo.dart', 'main() => "foo";') |
44 ]), | 42 ]), |
45 d.dir('bar', [ | 43 d.dir('bar', [ |
46 d.file('bar.dart', 'main() => "bar";') | 44 d.file('bar.dart', 'main() => "bar";') |
47 ]) | 45 ]) |
48 ]).validate(); | 46 ]).validate(); |
49 }); | 47 }); |
50 } | 48 } |
OLD | NEW |