OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, 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 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
6 import 'package:pub/src/io.dart'; | 6 import 'package:pub/src/io.dart'; |
7 | 7 |
8 import '../descriptor.dart' as d; | 8 import '../descriptor.dart' as d; |
9 import '../test_pub.dart'; | 9 import '../test_pub.dart'; |
10 | 10 |
11 main() { | 11 main() { |
12 initConfig(); | |
13 integration('prints the local paths to all packages in the lockfile', () { | 12 integration('prints the local paths to all packages in the lockfile', () { |
14 servePackages((builder) => builder.serve("bar", "1.0.0")); | 13 servePackages((builder) => builder.serve("bar", "1.0.0")); |
15 | 14 |
16 d.dir("foo", [ | 15 d.dir("foo", [ |
17 d.libDir("foo"), | 16 d.libDir("foo"), |
18 d.libPubspec("foo", "1.0.0") | 17 d.libPubspec("foo", "1.0.0") |
19 ]).create(); | 18 ]).create(); |
20 | 19 |
21 d.dir(appPath, [ | 20 d.dir(appPath, [ |
22 d.appPubspec({ | 21 d.appPubspec({ |
(...skipping 16 matching lines...) Expand all Loading... |
39 "localhost%58$p", "bar-1.0.0", "lib")), | 38 "localhost%58$p", "bar-1.0.0", "lib")), |
40 "myapp": canonicalize(path.join(sandboxDir, appPath, "lib")) | 39 "myapp": canonicalize(path.join(sandboxDir, appPath, "lib")) |
41 }, | 40 }, |
42 "input_files": [ | 41 "input_files": [ |
43 canonicalize(path.join(sandboxDir, appPath, "pubspec.lock")), | 42 canonicalize(path.join(sandboxDir, appPath, "pubspec.lock")), |
44 canonicalize(path.join(sandboxDir, appPath, "pubspec.yaml")) | 43 canonicalize(path.join(sandboxDir, appPath, "pubspec.yaml")) |
45 ] | 44 ] |
46 }); | 45 }); |
47 }); | 46 }); |
48 } | 47 } |
OLD | NEW |