| 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:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 8 import 'package:pub/src/io.dart'; | 6 import 'package:pub/src/io.dart'; |
| 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 main() { | 12 main() { |
| 15 integration('keeps a pub server package locked to the version in the ' | 13 integration('keeps a pub server package locked to the version in the ' |
| 16 'lockfile', () { | 14 'lockfile', () { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 | 26 |
| 29 // Start serving a newer package as well. | 27 // Start serving a newer package as well. |
| 30 servePackages((builder) => builder.serve("foo", "1.0.1")); | 28 servePackages((builder) => builder.serve("foo", "1.0.1")); |
| 31 | 29 |
| 32 // This shouldn't upgrade the foo dependency due to the lockfile. | 30 // This shouldn't upgrade the foo dependency due to the lockfile. |
| 33 pubGet(); | 31 pubGet(); |
| 34 | 32 |
| 35 d.packagesDir({"foo": "1.0.0"}).validate(); | 33 d.packagesDir({"foo": "1.0.0"}).validate(); |
| 36 }); | 34 }); |
| 37 } | 35 } |
| OLD | NEW |