| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS d.file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE d.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(); | |
| 10 forBothPubGetAndUpgrade((command) { | 9 forBothPubGetAndUpgrade((command) { |
| 11 integration('.packages file is created', () { | 10 integration('.packages file is created', () { |
| 12 servePackages((builder) { | 11 servePackages((builder) { |
| 13 builder.serve("foo", "1.2.3", | 12 builder.serve("foo", "1.2.3", |
| 14 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]); | 13 deps: {'baz': '2.2.2'}, contents: [d.dir("lib", [])]); |
| 15 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]); | 14 builder.serve("bar", "3.2.1", contents: [d.dir("lib", [])]); |
| 16 builder.serve("baz", "2.2.2", | 15 builder.serve("baz", "2.2.2", |
| 17 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]); | 16 deps: {"bar": "3.2.1"}, contents: [d.dir("lib", [])]); |
| 18 }); | 17 }); |
| 19 | 18 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ]).create(); | 80 ]).create(); |
| 82 | 81 |
| 83 pubCommand(command); | 82 pubCommand(command); |
| 84 | 83 |
| 85 d.dir(appPath, [d.packagesFile({"myapp": "0.0.0", | 84 d.dir(appPath, [d.packagesFile({"myapp": "0.0.0", |
| 86 "baz": "../local_baz"})]).validate(); | 85 "baz": "../local_baz"})]).validate(); |
| 87 }); | 86 }); |
| 88 | 87 |
| 89 }); | 88 }); |
| 90 } | 89 } |
| OLD | NEW |