OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 6 |
7 import 'descriptor.dart' as d; | 7 import 'descriptor.dart' as d; |
8 import 'test_pub.dart'; | 8 import 'test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 initConfig(); | |
12 | |
13 forBothPubGetAndUpgrade((command) { | 11 forBothPubGetAndUpgrade((command) { |
14 group("with --no-package-symlinks", () { | 12 group("with --no-package-symlinks", () { |
15 integration("installs hosted dependencies to the cache", () { | 13 integration("installs hosted dependencies to the cache", () { |
16 servePackages((builder) { | 14 servePackages((builder) { |
17 builder.serve("foo", "1.0.0"); | 15 builder.serve("foo", "1.0.0"); |
18 builder.serve("bar", "1.0.0"); | 16 builder.serve("bar", "1.0.0"); |
19 }); | 17 }); |
20 | 18 |
21 d.appDir({"foo": "any", "bar": "any"}).create(); | 19 d.appDir({"foo": "any", "bar": "any"}).create(); |
22 | 20 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 104 |
107 d.dir(appPath, [ | 105 d.dir(appPath, [ |
108 d.nothing("packages"), | 106 d.nothing("packages"), |
109 d.dir("bin/subdir/packages"), | 107 d.dir("bin/subdir/packages"), |
110 d.dir("lib/packages") | 108 d.dir("lib/packages") |
111 ]).validate(); | 109 ]).validate(); |
112 }); | 110 }); |
113 }); | 111 }); |
114 }); | 112 }); |
115 } | 113 } |
OLD | NEW |