| 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; | |
| 6 | |
| 7 import 'package:pub/src/exit_codes.dart' as exit_codes; | 5 import 'package:pub/src/exit_codes.dart' as exit_codes; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 | 7 |
| 10 import 'descriptor.dart' as d; | 8 import 'descriptor.dart' as d; |
| 11 import 'test_pub.dart'; | 9 import 'test_pub.dart'; |
| 12 | 10 |
| 13 main() { | 11 main() { |
| 14 forBothPubGetAndUpgrade((command) { | 12 forBothPubGetAndUpgrade((command) { |
| 15 group('requires', () { | 13 group('requires', () { |
| 16 integration('a pubspec', () { | 14 integration('a pubspec', () { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 } | 132 } |
| 135 }) | 133 }) |
| 136 ]).create(); | 134 ]).create(); |
| 137 | 135 |
| 138 pubCommand(command, | 136 pubCommand(command, |
| 139 error: contains('A package may not list itself as a dependency.'), | 137 error: contains('A package may not list itself as a dependency.'), |
| 140 exitCode: exit_codes.DATA); | 138 exitCode: exit_codes.DATA); |
| 141 }); | 139 }); |
| 142 }); | 140 }); |
| 143 } | 141 } |
| OLD | NEW |