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 validator_test; | 5 library validator_test; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:json'; | 8 import 'dart:json'; |
9 | 9 |
10 import 'test_pub.dart'; | 10 import 'test_pub.dart'; |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 ]).scheduleCreate(); | 524 ]).scheduleCreate(); |
525 | 525 |
526 expectLater(schedulePackageValidation(dependency), | 526 expectLater(schedulePackageValidation(dependency), |
527 pairOf(isEmpty, someElement(contains( | 527 pairOf(isEmpty, someElement(contains( |
528 ' foo: ">=0.1.2 <0.1.3"')))); | 528 ' foo: ">=0.1.2 <0.1.3"')))); |
529 | 529 |
530 run(); | 530 run(); |
531 }); | 531 }); |
532 }); | 532 }); |
533 }); | 533 }); |
| 534 |
| 535 test('has a hosted dependency on itself', () { |
| 536 dir(appPath, [ |
| 537 libPubspec("test_pkg", "1.0.0", [ |
| 538 {'hosted': {'name': 'test_pkg', 'version': '>=1.0.0'}} |
| 539 ]) |
| 540 ]).scheduleCreate(); |
| 541 |
| 542 expectValidationWarning(dependency); |
| 543 |
| 544 run(); |
| 545 }); |
534 }); | 546 }); |
535 } | 547 } |
OLD | NEW |