| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2014, 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 import '../descriptor.dart' as d; | |
| 6 import '../test_pub.dart'; | |
| 7 | |
| 8 main() { | |
| 9 initConfig(); | |
| 10 integration("doesn't change git dependencies", () { | |
| 11 ensureGit(); | |
| 12 | |
| 13 d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create(); | |
| 14 | |
| 15 d.appDir({ | |
| 16 "foo": { | |
| 17 "git": "../foo.git" | |
| 18 } | |
| 19 }).create(); | |
| 20 | |
| 21 pubGet(); | |
| 22 | |
| 23 d.dir( | |
| 24 packagesPath, | |
| 25 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); | |
| 26 | |
| 27 d.git( | |
| 28 'foo.git', | |
| 29 [d.libDir('foo', 'foo 2'), d.libPubspec('foo', '1.0.0')]).commit(); | |
| 30 | |
| 31 pubDowngrade(); | |
| 32 | |
| 33 d.dir( | |
| 34 packagesPath, | |
| 35 [d.dir('foo', [d.file('foo.dart', 'main() => "foo";')])]).validate(); | |
| 36 }); | |
| 37 } | |
| OLD | NEW |