OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // Dart2js can take a long time to compile dart code, so we increase the timeout |
| 6 // to cope with that. |
| 7 @Timeout.factor(3) |
| 8 |
5 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 10 |
7 import '../descriptor.dart' as d; | 11 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 12 import '../test_pub.dart'; |
9 | 13 |
10 main() { | 14 main() { |
11 initConfig(); | |
12 | |
13 integration("includes .dart files from dependencies in debug mode", () { | 15 integration("includes .dart files from dependencies in debug mode", () { |
14 // Dart2js can take a long time to compile dart code, so we increase the | |
15 // timeout to cope with that. | |
16 currentSchedule.timeout *= 3; | |
17 | |
18 d.dir("foo", [ | 16 d.dir("foo", [ |
19 d.libPubspec("foo", "0.0.1"), | 17 d.libPubspec("foo", "0.0.1"), |
20 d.dir("lib", [ | 18 d.dir("lib", [ |
21 d.file('foo.dart', 'foo() => print("hello");'), | 19 d.file('foo.dart', 'foo() => print("hello");'), |
22 d.dir("sub", [ | 20 d.dir("sub", [ |
23 d.file('bar.dart', 'bar() => print("hello");'), | 21 d.file('bar.dart', 'bar() => print("hello");'), |
24 ]) | 22 ]) |
25 ]) | 23 ]) |
26 ]).create(); | 24 ]).create(); |
27 | 25 |
(...skipping 27 matching lines...) Expand all Loading... |
55 d.dir("sub", [ | 53 d.dir("sub", [ |
56 d.file("main.dart", 'myapp() => print("not entrypoint");'), | 54 d.file("main.dart", 'myapp() => print("not entrypoint");'), |
57 // Does *not* copy packages into subdirectories. | 55 // Does *not* copy packages into subdirectories. |
58 d.nothing("packages") | 56 d.nothing("packages") |
59 ]) | 57 ]) |
60 ]) | 58 ]) |
61 ]) | 59 ]) |
62 ]).validate(); | 60 ]).validate(); |
63 }); | 61 }); |
64 } | 62 } |
OLD | NEW |