| 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 at a specific revision from Git', () { | 9 integration('checks out a package at a specific revision from Git', () { |
| 12 ensureGit(); | 10 ensureGit(); |
| 13 | 11 |
| 14 var repo = d.git('foo.git', [ | 12 var repo = d.git('foo.git', [ |
| 15 d.libDir('foo', 'foo 1'), | 13 d.libDir('foo', 'foo 1'), |
| 16 d.libPubspec('foo', '1.0.0') | 14 d.libPubspec('foo', '1.0.0') |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 | 27 |
| 30 pubGet(); | 28 pubGet(); |
| 31 | 29 |
| 32 d.dir(packagesPath, [ | 30 d.dir(packagesPath, [ |
| 33 d.dir('foo', [ | 31 d.dir('foo', [ |
| 34 d.file('foo.dart', 'main() => "foo 1";') | 32 d.file('foo.dart', 'main() => "foo 1";') |
| 35 ]) | 33 ]) |
| 36 ]).validate(); | 34 ]).validate(); |
| 37 }); | 35 }); |
| 38 } | 36 } |
| OLD | NEW |