| 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 import '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 7 import '../serve/utils.dart'; | |
| 8 | 7 |
| 9 main() { | 8 main() { |
| 10 // Regression test for issue 23113 | 9 // Regression test for issue 23113 |
| 11 integration('runs a named Dart application in a dependency', () { | 10 integration('runs a named Dart application in a dependency', () { |
| 12 servePackages((builder) { | 11 servePackages((builder) { |
| 13 builder.serve('foo', '1.0.0', pubspec: { | 12 builder.serve('foo', '1.0.0', pubspec: { |
| 14 'name': 'foo', | 13 'name': 'foo', |
| 15 'version': '1.0.0' | 14 'version': '1.0.0' |
| 16 }, contents: [ | 15 }, contents: [ |
| 17 d.dir("bin", [ | 16 d.dir("bin", [ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 }) | 43 }) |
| 45 ]).create(); | 44 ]).create(); |
| 46 | 45 |
| 47 pubGet(); | 46 pubGet(); |
| 48 | 47 |
| 49 pub = pubRun(args: ["foo:bar"]); | 48 pub = pubRun(args: ["foo:bar"]); |
| 50 pub.stdout.expect("different"); | 49 pub.stdout.expect("different"); |
| 51 pub.shouldExit(); | 50 pub.shouldExit(); |
| 52 }); | 51 }); |
| 53 } | 52 } |
| OLD | NEW |