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