| 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("upgrades one locked Git package but no others", () { | 9 integration("upgrades one locked Git package but no others", () { |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 d.dir(packagesPath, [ | 50 d.dir(packagesPath, [ |
| 53 d.dir('foo', [ | 51 d.dir('foo', [ |
| 54 d.file('foo.dart', 'main() => "foo 2";') | 52 d.file('foo.dart', 'main() => "foo 2";') |
| 55 ]), | 53 ]), |
| 56 d.dir('bar', [ | 54 d.dir('bar', [ |
| 57 d.file('bar.dart', 'main() => "bar";') | 55 d.file('bar.dart', 'main() => "bar";') |
| 58 ]) | 56 ]) |
| 59 ]).validate(); | 57 ]).validate(); |
| 60 }); | 58 }); |
| 61 } | 59 } |
| OLD | NEW |