| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // Regression test for issue 22194. | 9 // Regression test for issue 22194. |
| 12 integration('gets a dependency with broken dev dependencies from a pub ' | 10 integration('gets a dependency with broken dev dependencies from a pub ' |
| 13 'server', () { | 11 'server', () { |
| 14 servePackages((builder) { | 12 servePackages((builder) { |
| 15 builder.serve("foo", "1.2.3", pubspec: { | 13 builder.serve("foo", "1.2.3", pubspec: { |
| 16 "dev_dependencies": { | 14 "dev_dependencies": { |
| 17 "busted": {"not a real source": null} | 15 "busted": {"not a real source": null} |
| 18 } | 16 } |
| 19 }); | 17 }); |
| 20 }); | 18 }); |
| 21 | 19 |
| 22 d.appDir({"foo": "1.2.3"}).create(); | 20 d.appDir({"foo": "1.2.3"}).create(); |
| 23 | 21 |
| 24 pubGet(); | 22 pubGet(); |
| 25 | 23 |
| 26 d.cacheDir({"foo": "1.2.3"}).validate(); | 24 d.cacheDir({"foo": "1.2.3"}).validate(); |
| 27 d.packagesDir({"foo": "1.2.3"}).validate(); | 25 d.packagesDir({"foo": "1.2.3"}).validate(); |
| 28 }); | 26 }); |
| 29 } | 27 } |
| OLD | NEW |