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

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

Issue 12437022: Use scheduled_test for Pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-upload Created 7 years, 9 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 | « utils/tests/pub/pub_lish_test.dart ('k') | utils/tests/pub/pub_uploader_test.dart » ('j') | 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 '../../../pkg/scheduled_test/lib/scheduled_test.dart';
10
11 import 'descriptor.dart' as d;
9 import 'test_pub.dart'; 12 import 'test_pub.dart';
10 import '../../../pkg/unittest/lib/unittest.dart';
11 13
12 final USAGE_STRING = """ 14 final USAGE_STRING = """
13 Pub is a package manager for Dart. 15 Pub is a package manager for Dart.
14 16
15 Usage: pub command [arguments] 17 Usage: pub command [arguments]
16 18
17 Global options: 19 Global options:
18 -h, --help Print this usage information. 20 -h, --help Print this usage information.
19 --version Print pub version. 21 --version Print pub version.
20 --[no-]trace Print debugging information when an error occurs. 22 --[no-]trace Print debugging information when an error occurs.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 }); 125 });
124 126
125 }); 127 });
126 128
127 group('version', () { 129 group('version', () {
128 integration('displays the current version', () { 130 integration('displays the current version', () {
129 schedulePub(args: ['version'], output: VERSION_STRING); 131 schedulePub(args: ['version'], output: VERSION_STRING);
130 }); 132 });
131 133
132 integration('parses a release-style version', () { 134 integration('parses a release-style version', () {
133 dir(sdkPath, [ 135 d.dir(sdkPath, [
134 file('version', '0.1.2.0_r17645'), 136 d.file('version', '0.1.2.0_r17645'),
135 ]).scheduleCreate(); 137 ]).create();
136 138
137 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r17645\n"); 139 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r17645\n");
138 }); 140 });
139 141
140 integration('parses a dev-only style version', () { 142 integration('parses a dev-only style version', () {
141 // The "version" file generated on developer builds is a little funky and 143 // The "version" file generated on developer builds is a little funky and
142 // we need to make sure we don't choke on it. 144 // we need to make sure we don't choke on it.
143 dir(sdkPath, [ 145 d.dir(sdkPath, [
144 file('version', '0.1.2.0_r16279_bobross'), 146 d.file('version', '0.1.2.0_r16279_bobross'),
145 ]).scheduleCreate(); 147 ]).create();
146 148
147 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); 149 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n");
148 }); 150 });
149 }); 151 });
150 } 152 }
OLDNEW
« no previous file with comments | « utils/tests/pub/pub_lish_test.dart ('k') | utils/tests/pub/pub_uploader_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698