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

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

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