| 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'); | 7 #import('dart:io'); |
| 8 | 8 |
| 9 #import('test_pub.dart'); | 9 #import('test_pub.dart'); |
| 10 #import('../../../lib/unittest/unittest.dart'); | 10 #import('../../../lib/unittest/unittest.dart'); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 file('bar.dart', 'main() => "bar";'), | 136 file('bar.dart', 'main() => "bar";'), |
| 137 ]) | 137 ]) |
| 138 ]).scheduleValidate(); | 138 ]).scheduleValidate(); |
| 139 | 139 |
| 140 runPub(args: ['install'], | 140 runPub(args: ['install'], |
| 141 output: ''' | 141 output: ''' |
| 142 Dependencies installed! | 142 Dependencies installed! |
| 143 '''); | 143 '''); |
| 144 }); | 144 }); |
| 145 | 145 |
| 146 /* |
| 146 test('checks out a package from Git', () { | 147 test('checks out a package from Git', () { |
| 147 git('foo.git', [ | 148 git('foo.git', [ |
| 148 file('foo.dart', 'main() => "foo";') | 149 file('foo.dart', 'main() => "foo";') |
| 149 ]).scheduleCreate(); | 150 ]).scheduleCreate(); |
| 150 | 151 |
| 151 dir(appPath, [ | 152 dir(appPath, [ |
| 152 file('pubspec', ''' | 153 file('pubspec', ''' |
| 153 dependencies: | 154 dependencies: |
| 154 foo: | 155 foo: |
| 155 git: ../foo.git | 156 git: ../foo.git |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 file('foo.dart', 'main() => "foo";') | 194 file('foo.dart', 'main() => "foo";') |
| 194 ]), | 195 ]), |
| 195 dir('bar', [ | 196 dir('bar', [ |
| 196 file('bar.dart', 'main() => "bar";') | 197 file('bar.dart', 'main() => "bar";') |
| 197 ]) | 198 ]) |
| 198 ]).scheduleValidate(); | 199 ]).scheduleValidate(); |
| 199 | 200 |
| 200 runPub(args: ['install'], | 201 runPub(args: ['install'], |
| 201 output: const RegExp("Dependencies installed!\$")); | 202 output: const RegExp("Dependencies installed!\$")); |
| 202 }); | 203 }); |
| 204 */ |
| 203 } | 205 } |
| 204 | 206 |
| 205 versionCommand() { | 207 versionCommand() { |
| 206 test('displays the current version', () => | 208 test('displays the current version', () => |
| 207 runPub(args: ['version'], output: VERSION_STRING)); | 209 runPub(args: ['version'], output: VERSION_STRING)); |
| 208 } | 210 } |
| OLD | NEW |