| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 | 7 |
| 8 main() { | 8 main() { |
| 9 initConfig(); | 9 initConfig(); |
| 10 integration("includes root package's dev dependencies", () { | 10 integration("includes root package's dev dependencies", () { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 d.dir(appPath, [ | 21 d.dir(appPath, [ |
| 22 d.pubspec({ | 22 d.pubspec({ |
| 23 "name": "myapp", | 23 "name": "myapp", |
| 24 "dev_dependencies": { | 24 "dev_dependencies": { |
| 25 "foo": {"path": "../foo"}, | 25 "foo": {"path": "../foo"}, |
| 26 "bar": {"path": "../bar"}, | 26 "bar": {"path": "../bar"}, |
| 27 } | 27 } |
| 28 }) | 28 }) |
| 29 ]).create(); | 29 ]).create(); |
| 30 | 30 |
| 31 pubInstall(); | 31 pubGet(); |
| 32 | 32 |
| 33 d.dir(packagesPath, [ | 33 d.dir(packagesPath, [ |
| 34 d.dir("foo", [ | 34 d.dir("foo", [ |
| 35 d.file("foo.dart", 'main() => "foo";') | 35 d.file("foo.dart", 'main() => "foo";') |
| 36 ]), | 36 ]), |
| 37 d.dir("bar", [ | 37 d.dir("bar", [ |
| 38 d.file("bar.dart", 'main() => "bar";') | 38 d.file("bar.dart", 'main() => "bar";') |
| 39 ]) | 39 ]) |
| 40 ]).validate(); | 40 ]).validate(); |
| 41 }); | 41 }); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 55 | 55 |
| 56 d.dir(appPath, [ | 56 d.dir(appPath, [ |
| 57 d.pubspec({ | 57 d.pubspec({ |
| 58 "name": "myapp", | 58 "name": "myapp", |
| 59 "dev_dependencies": { | 59 "dev_dependencies": { |
| 60 "foo": {"path": "../foo"} | 60 "foo": {"path": "../foo"} |
| 61 } | 61 } |
| 62 }) | 62 }) |
| 63 ]).create(); | 63 ]).create(); |
| 64 | 64 |
| 65 pubInstall(); | 65 pubGet(); |
| 66 | 66 |
| 67 d.dir(packagesPath, [ | 67 d.dir(packagesPath, [ |
| 68 d.dir("foo", [ | 68 d.dir("foo", [ |
| 69 d.file("foo.dart", 'main() => "foo";') | 69 d.file("foo.dart", 'main() => "foo";') |
| 70 ]), | 70 ]), |
| 71 d.dir("bar", [ | 71 d.dir("bar", [ |
| 72 d.file("bar.dart", 'main() => "bar";') | 72 d.file("bar.dart", 'main() => "bar";') |
| 73 ]) | 73 ]) |
| 74 ]).validate(); | 74 ]).validate(); |
| 75 }); | 75 }); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 90 d.libDir('bar'), | 90 d.libDir('bar'), |
| 91 d.libPubspec('bar', '0.0.1') | 91 d.libPubspec('bar', '0.0.1') |
| 92 ]).create(); | 92 ]).create(); |
| 93 | 93 |
| 94 d.dir(appPath, [ | 94 d.dir(appPath, [ |
| 95 d.appPubspec({ | 95 d.appPubspec({ |
| 96 "foo": {"path": "../foo"} | 96 "foo": {"path": "../foo"} |
| 97 }) | 97 }) |
| 98 ]).create(); | 98 ]).create(); |
| 99 | 99 |
| 100 pubInstall(); | 100 pubGet(); |
| 101 | 101 |
| 102 d.dir(packagesPath, [ | 102 d.dir(packagesPath, [ |
| 103 d.dir("foo", [ | 103 d.dir("foo", [ |
| 104 d.file("foo.dart", 'main() => "foo";') | 104 d.file("foo.dart", 'main() => "foo";') |
| 105 ]), | 105 ]), |
| 106 d.nothing("bar") | 106 d.nothing("bar") |
| 107 ]).validate(); | 107 ]).validate(); |
| 108 }); | 108 }); |
| 109 } | 109 } |
| OLD | NEW |