| 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_server.dart'; | 7 import 'package:scheduled_test/scheduled_server.dart'; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 11 | 9 |
| 12 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
| 13 import '../test_pub.dart'; | 11 import '../test_pub.dart'; |
| 14 | 12 |
| 15 main() { | 13 main() { |
| 16 initConfig(); | 14 initConfig(); |
| 17 | 15 |
| 18 forBothPubInstallAndUpdate((command) { | 16 forBothPubInstallAndUpdate((command) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 }); | 61 }); |
| 64 | 62 |
| 65 pub.shouldExit(1); | 63 pub.shouldExit(1); |
| 66 | 64 |
| 67 expect(pub.remainingStderr(), completion(equals( | 65 expect(pub.remainingStderr(), completion(equals( |
| 68 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" | 66 "Pub 0.1.2+3 is incompatible with the current version of 127.0.0.1.\n" |
| 69 "Upgrade pub to the latest version and try again."))); | 67 "Upgrade pub to the latest version and try again."))); |
| 70 }); | 68 }); |
| 71 }); | 69 }); |
| 72 } | 70 } |
| OLD | NEW |