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

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

Issue 69723004: Get rid of DART_SDK in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 years, 1 month 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) 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 'package:scheduled_test/scheduled_test.dart'; 7 import 'package:scheduled_test/scheduled_test.dart';
8 8
9 import 'descriptor.dart' as d;
10 import 'test_pub.dart'; 9 import 'test_pub.dart';
11 10
12 final USAGE_STRING = """ 11 final USAGE_STRING = """
13 Pub is a package manager for Dart. 12 Pub is a package manager for Dart.
14 13
15 Usage: pub command [arguments] 14 Usage: pub command [arguments]
16 15
17 Global options: 16 Global options:
18 -h, --help Print this usage information. 17 -h, --help Print this usage information.
19 --version Print pub version. 18 --version Print pub version.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ''', 161 ''',
163 exitCode: 64); 162 exitCode: 64);
164 }); 163 });
165 164
166 }); 165 });
167 166
168 group('version', () { 167 group('version', () {
169 integration('displays the current version', () { 168 integration('displays the current version', () {
170 schedulePub(args: ['version'], output: VERSION_STRING); 169 schedulePub(args: ['version'], output: VERSION_STRING);
171 }); 170 });
172
173 integration('parses a release-style version', () {
174 d.dir(sdkPath, [
175 d.file('version', '0.1.2.0_r17645'),
176 ]).create();
177
178 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r17645\n");
179 });
180
181 integration('parses a dev-only style version', () {
182 // The "version" file generated on developer builds is a little funky and
183 // we need to make sure we don't choke on it.
184 d.dir(sdkPath, [
185 d.file('version', '0.1.2.0_r16279_bobross'),
186 ]).create();
187
188 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n");
189 });
190 }); 171 });
191 } 172 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/sdk.dart ('k') | sdk/lib/_internal/pub/test/real_version_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698