| 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; | 5 library pub_tests; |
| 6 | 6 |
| 7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| 11 initConfig(); | |
| 12 integration("doesn't upgrade one locked Git package's dependencies if it's " | 11 integration("doesn't upgrade one locked Git package's dependencies if it's " |
| 13 "not necessary", () { | 12 "not necessary", () { |
| 14 ensureGit(); | 13 ensureGit(); |
| 15 | 14 |
| 16 d.git('foo.git', [ | 15 d.git('foo.git', [ |
| 17 d.libDir('foo'), | 16 d.libDir('foo'), |
| 18 d.libPubspec("foo", "1.0.0", deps: { | 17 d.libPubspec("foo", "1.0.0", deps: { |
| 19 "foo-dep": {"git": "../foo-dep.git" | 18 "foo-dep": {"git": "../foo-dep.git" |
| 20 }}) | 19 }}) |
| 21 ]).create(); | 20 ]).create(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 d.dir(packagesPath, [ | 54 d.dir(packagesPath, [ |
| 56 d.dir('foo', [ | 55 d.dir('foo', [ |
| 57 d.file('foo.dart', 'main() => "foo 2";') | 56 d.file('foo.dart', 'main() => "foo 2";') |
| 58 ]), | 57 ]), |
| 59 d.dir('foo-dep', [ | 58 d.dir('foo-dep', [ |
| 60 d.file('foo-dep.dart', 'main() => "foo-dep";') | 59 d.file('foo-dep.dart', 'main() => "foo-dep";') |
| 61 ]), | 60 ]), |
| 62 ]).validate(); | 61 ]).validate(); |
| 63 }); | 62 }); |
| 64 } | 63 } |
| OLD | NEW |