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(); | 11 initConfig(); |
12 | 12 |
13 forBothPubGetAndUpgrade((command) { | 13 forBothPubGetAndUpgrade((command) { |
14 group("with --no-package-symlinks", () { | 14 group("with --no-package-symlinks", () { |
15 integration("installs hosted dependencies to the cache", () { | 15 integration("installs hosted dependencies to the cache", () { |
16 servePackages([ | 16 servePackages((builder) { |
17 packageMap("foo", "1.0.0"), | 17 builder.serve("foo", "1.0.0"); |
18 packageMap("bar", "1.0.0") | 18 builder.serve("bar", "1.0.0"); |
19 ]); | 19 }); |
20 | 20 |
21 d.appDir({"foo": "any", "bar": "any"}).create(); | 21 d.appDir({"foo": "any", "bar": "any"}).create(); |
22 | 22 |
23 pubCommand(command, args: ["--no-package-symlinks"]); | 23 pubCommand(command, args: ["--no-package-symlinks"]); |
24 | 24 |
25 d.nothing("$appPath/packages").validate(); | 25 d.nothing("$appPath/packages").validate(); |
26 | 26 |
27 d.hostedCache([ | 27 d.hostedCache([ |
28 d.dir("foo-1.0.0", [ | 28 d.dir("foo-1.0.0", [ |
29 d.dir("lib", [d.file("foo.dart", 'main() => "foo 1.0.0";')]) | 29 d.dir("lib", [d.file("foo.dart", 'main() => "foo 1.0.0";')]) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 d.dir(appPath, [ | 107 d.dir(appPath, [ |
108 d.nothing("packages"), | 108 d.nothing("packages"), |
109 d.dir("bin/subdir/packages"), | 109 d.dir("bin/subdir/packages"), |
110 d.dir("lib/packages") | 110 d.dir("lib/packages") |
111 ]).validate(); | 111 ]).validate(); |
112 }); | 112 }); |
113 }); | 113 }); |
114 }); | 114 }); |
115 } | 115 } |
OLD | NEW |