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:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
10 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
11 | 9 |
12 import '../../../lib/src/io.dart'; | 10 import '../../../lib/src/io.dart'; |
13 import '../../descriptor.dart' as d; | 11 import '../../descriptor.dart' as d; |
14 import '../../test_pub.dart'; | 12 import '../../test_pub.dart'; |
15 | 13 |
16 main() { | 14 main() { |
17 initConfig(); | 15 initConfig(); |
18 integration('keeps a pub server package locked to the version in the ' | 16 integration('keeps a pub server package locked to the version in the ' |
(...skipping 12 matching lines...) Expand all Loading... |
31 | 29 |
32 // Start serving a newer package as well. | 30 // Start serving a newer package as well. |
33 servePackages([packageMap("foo", "1.0.1")]); | 31 servePackages([packageMap("foo", "1.0.1")]); |
34 | 32 |
35 // This install shouldn't update the foo dependency due to the lockfile. | 33 // This install shouldn't update the foo dependency due to the lockfile. |
36 pubInstall(); | 34 pubInstall(); |
37 | 35 |
38 d.packagesDir({"foo": "1.0.0"}).validate(); | 36 d.packagesDir({"foo": "1.0.0"}).validate(); |
39 }); | 37 }); |
40 } | 38 } |
OLD | NEW |