OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS d.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 d.file. |
| 4 |
| 5 import 'descriptor.dart' as d; |
| 6 import 'test_pub.dart'; |
| 7 |
| 8 main() { |
| 9 initConfig(); |
| 10 forBothPubGetAndUpgrade((command) { |
| 11 integration('check that .packages is created', () { |
| 12 servePackages((builder) { |
| 13 builder.serve("foo", "1.2.3", |
| 14 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]); |
| 15 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]); |
| 16 builder.serve("baz", "2.2.2", |
| 17 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]); |
| 18 }); |
| 19 |
| 20 d.appDir({"foo": "1.2.3"}).create(); |
| 21 |
| 22 pubCommand(command); |
| 23 |
| 24 d.dir(appPath, [d.packagesFile({ |
| 25 "foo": "1.2.3", "bar": "3.2.1", "baz": "2.2.2", "myapp": "0.0.0"})]) |
| 26 .validate(); |
| 27 }); |
| 28 }); |
| 29 } |
| 30 |
OLD | NEW |