OLD | NEW |
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'; | |
8 | |
9 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
10 | 8 |
11 import 'descriptor.dart' as d; | 9 import 'descriptor.dart' as d; |
12 import 'test_pub.dart'; | 10 import 'test_pub.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 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // The "version" file generated on developer builds is a little funky and | 169 // The "version" file generated on developer builds is a little funky and |
172 // we need to make sure we don't choke on it. | 170 // we need to make sure we don't choke on it. |
173 d.dir(sdkPath, [ | 171 d.dir(sdkPath, [ |
174 d.file('version', '0.1.2.0_r16279_bobross'), | 172 d.file('version', '0.1.2.0_r16279_bobross'), |
175 ]).create(); | 173 ]).create(); |
176 | 174 |
177 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); | 175 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); |
178 }); | 176 }); |
179 }); | 177 }); |
180 } | 178 } |
OLD | NEW |