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('snapshots the executables for a hosted package', () { | 11 integration('snapshots the executables for a hosted package', () { |
13 servePackages((builder) { | 12 servePackages((builder) { |
14 builder.serve("foo", "1.0.0", contents: [ | 13 builder.serve("foo", "1.0.0", contents: [ |
15 d.dir('bin', [ | 14 d.dir('bin', [ |
16 d.file("hello.dart", "void main() => print('hello!');"), | 15 d.file("hello.dart", "void main() => print('hello!');"), |
17 d.file("goodbye.dart", "void main() => print('goodbye!');"), | 16 d.file("goodbye.dart", "void main() => print('goodbye!');"), |
18 d.file("shell.sh", "echo shell"), | 17 d.file("shell.sh", "echo shell"), |
19 d.dir("subdir", [ | 18 d.dir("subdir", [ |
20 d.file("sub.dart", "void main() => print('sub!');") | 19 d.file("sub.dart", "void main() => print('sub!');") |
21 ]) | 20 ]) |
(...skipping 14 matching lines...) Expand all Loading... |
36 d.matcherFile('hello.dart.snapshot', contains('hello!')), | 35 d.matcherFile('hello.dart.snapshot', contains('hello!')), |
37 d.matcherFile('goodbye.dart.snapshot', contains('goodbye!')), | 36 d.matcherFile('goodbye.dart.snapshot', contains('goodbye!')), |
38 d.nothing('shell.sh.snapshot'), | 37 d.nothing('shell.sh.snapshot'), |
39 d.nothing('subdir') | 38 d.nothing('subdir') |
40 ]) | 39 ]) |
41 ]) | 40 ]) |
42 ]) | 41 ]) |
43 ]).validate(); | 42 ]).validate(); |
44 }); | 43 }); |
45 } | 44 } |
OLD | NEW |