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 integration('checks out a package from Git', () { |
| 13 ensureGit(); |
| 14 |
| 15 d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create(); |
| 16 |
| 17 d.appDir({ |
| 18 "foo": { |
| 19 "git": "../foo.git" |
| 20 } |
| 21 }).create(); |
| 22 |
| 23 pubGet(); |
| 24 |
| 25 d.dir( |
| 26 cachePath, |
| 27 [ |
| 28 d.dir( |
| 29 'git', |
| 30 [ |
| 31 d.dir('cache', [d.gitPackageRepoCacheDir('foo')]), |
| 32 d.gitPackageRevisionCacheDir('foo')])]).validate(); |
| 33 |
| 34 d.dir( |
| 35 packagesPath, |
| 36 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); |
| 37 }); |
| 38 } |
OLD | NEW |