OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 6 |
7 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
8 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 initConfig(); | |
12 integration('uses the 1.6-style lockfile if necessary', () { | 11 integration('uses the 1.6-style lockfile if necessary', () { |
13 servePackages((builder) { | 12 servePackages((builder) { |
14 builder.serve("bar", "1.0.0"); | 13 builder.serve("bar", "1.0.0"); |
15 builder.serve("foo", "1.0.0", deps: {"bar": "any"}, contents: [ | 14 builder.serve("foo", "1.0.0", deps: {"bar": "any"}, contents: [ |
16 d.dir("bin", [ | 15 d.dir("bin", [ |
17 d.file("script.dart", """ | 16 d.file("script.dart", """ |
18 import 'package:bar/bar.dart' as bar; | 17 import 'package:bar/bar.dart' as bar; |
19 | 18 |
20 main(args) => print(bar.main());""") | 19 main(args) => print(bar.main());""") |
21 ]) | 20 ]) |
(...skipping 23 matching lines...) Expand all Loading... |
45 pub.shouldExit(); | 44 pub.shouldExit(); |
46 | 45 |
47 d.dir(cachePath, [ | 46 d.dir(cachePath, [ |
48 d.dir('global_packages', [ | 47 d.dir('global_packages', [ |
49 d.nothing('foo.lock'), | 48 d.nothing('foo.lock'), |
50 d.dir('foo', [d.matcherFile('pubspec.lock', contains('1.0.0'))]) | 49 d.dir('foo', [d.matcherFile('pubspec.lock', contains('1.0.0'))]) |
51 ]) | 50 ]) |
52 ]).validate(); | 51 ]).validate(); |
53 }); | 52 }); |
54 } | 53 } |
OLD | NEW |