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

Side by Side Diff: utils/tests/pub/pub_test.dart

Issue 12218062: Call init test config for generating human-friendly test results. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_tests; 5 library pub_tests;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'test_pub.dart'; 9 import 'test_pub.dart';
10 import '../../../pkg/unittest/lib/unittest.dart'; 10 import '../../../pkg/unittest/lib/unittest.dart';
(...skipping 24 matching lines...) Expand all
35 version Print pub version. 35 version Print pub version.
36 36
37 Use "pub help [command]" for more information about a command. 37 Use "pub help [command]" for more information about a command.
38 """; 38 """;
39 39
40 final VERSION_STRING = ''' 40 final VERSION_STRING = '''
41 Pub 0.1.2+3 41 Pub 0.1.2+3
42 '''; 42 ''';
43 43
44 main() { 44 main() {
45 initConfig();
46
45 integration('running pub with no command displays usage', () { 47 integration('running pub with no command displays usage', () {
46 schedulePub(args: [], output: USAGE_STRING); 48 schedulePub(args: [], output: USAGE_STRING);
47 }); 49 });
48 50
49 integration('running pub with just --help displays usage', () { 51 integration('running pub with just --help displays usage', () {
50 schedulePub(args: ['--help'], output: USAGE_STRING); 52 schedulePub(args: ['--help'], output: USAGE_STRING);
51 }); 53 });
52 54
53 integration('running pub with just -h displays usage', () { 55 integration('running pub with just -h displays usage', () {
54 schedulePub(args: ['-h'], output: USAGE_STRING); 56 schedulePub(args: ['-h'], output: USAGE_STRING);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The "version" file generated on developer builds is a little funky and 138 // The "version" file generated on developer builds is a little funky and
137 // we need to make sure we don't choke on it. 139 // we need to make sure we don't choke on it.
138 dir(sdkPath, [ 140 dir(sdkPath, [
139 file('version', '0.1.2.0_r16279_bobross'), 141 file('version', '0.1.2.0_r16279_bobross'),
140 ]).scheduleCreate(); 142 ]).scheduleCreate();
141 143
142 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); 144 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n");
143 }); 145 });
144 }); 146 });
145 } 147 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698