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

Side by Side Diff: test/cache/list_test.dart

Issue 1215833002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 5 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
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();
14
15 hostedDir(package) { 13 hostedDir(package) {
16 return path.join(sandboxDir, cachePath, "hosted", 14 return path.join(sandboxDir, cachePath, "hosted",
17 "pub.dartlang.org", package); 15 "pub.dartlang.org", package);
18 } 16 }
19 17
20 integration('running pub cache list when there is no cache', () { 18 integration('running pub cache list when there is no cache', () {
21 schedulePub(args: ['cache', 'list'], output: '{"packages":{}}'); 19 schedulePub(args: ['cache', 'list'], output: '{"packages":{}}');
22 }); 20 });
23 21
24 integration('running pub cache list on empty cache', () { 22 integration('running pub cache list on empty cache', () {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ]) 68 ])
71 ]).create(); 69 ]).create();
72 70
73 schedulePub(args: ['cache', 'list'], outputJson: { 71 schedulePub(args: ['cache', 'list'], outputJson: {
74 "packages": { 72 "packages": {
75 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}} 73 "foo": {"1.2.3": {"location": hostedDir('foo-1.2.3')}}
76 } 74 }
77 }); 75 });
78 }); 76 });
79 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698