Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: sdk/lib/_internal/pub/test/cache/list_test.dart

Issue 136063005: Add a "cache add" command to download packages to the cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/cache/add/unexpected_arguments_test.dart ('k') | sdk/lib/_internal/pub/test/descriptor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698