| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library pub_cache_test; | 5 library pub_cache_test; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
| 8 | 8 |
| 9 import 'descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
| 10 import 'test_pub.dart'; | 10 import '../test_pub.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 initConfig(); | 13 initConfig(); |
| 14 | 14 |
| 15 hostedDir(package) { | 15 hostedDir(package) { |
| 16 return path.join(sandboxDir, cachePath, "hosted", | 16 return path.join(sandboxDir, cachePath, "hosted", |
| 17 "pub.dartlang.org", package); | 17 "pub.dartlang.org", package); |
| 18 } | 18 } |
| 19 | 19 |
| 20 integration('running pub cache list when there is no cache', () { | 20 integration('running pub cache list when there is no cache', () { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ]) | 70 ]) |
| 71 ]).create(); | 71 ]).create(); |
| 72 | 72 |
| 73 schedulePub(args: ['cache', 'list'], outputJson: { | 73 schedulePub(args: ['cache', 'list'], outputJson: { |
| 74 "packages": { | 74 "packages": { |
| 75 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}} | 75 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}} |
| 76 } | 76 } |
| 77 }); | 77 }); |
| 78 }); | 78 }); |
| 79 } | 79 } |
| OLD | NEW |