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 |
Bob Nystrom
2015/06/26 23:04:10
@Timeout.factor()?
| |
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 import 'utils.dart'; | 9 import 'utils.dart'; |
10 | 10 |
11 main() { | 11 main() { |
12 // This is a regression test for http://dartbug.com/16617. | 12 // This is a regression test for http://dartbug.com/16617. |
13 | 13 |
14 initConfig(); | |
15 | |
16 integration("compiles dart.js and interop.js next to entrypoints when " | 14 integration("compiles dart.js and interop.js next to entrypoints when " |
17 "browser is a dependency_override", () { | 15 "browser is a dependency_override", () { |
18 // Dart2js can take a long time to compile dart code, so we increase the | |
19 // timeout to cope with that. | |
20 currentSchedule.timeout *= 3; | |
21 | |
22 serveBrowserPackage(); | 16 serveBrowserPackage(); |
23 | 17 |
24 d.dir(appPath, [ | 18 d.dir(appPath, [ |
25 d.pubspec({ | 19 d.pubspec({ |
26 "name": "myapp", | 20 "name": "myapp", |
27 "dependency_overrides": { | 21 "dependency_overrides": { |
28 "browser": "any" | 22 "browser": "any" |
29 } | 23 } |
30 }), | 24 }), |
31 d.dir('web', [ | 25 d.dir('web', [ |
(...skipping 11 matching lines...) Expand all Loading... | |
43 d.dir('web', [ | 37 d.dir('web', [ |
44 d.dir('packages', [d.dir('browser', [ | 38 d.dir('packages', [d.dir('browser', [ |
45 d.file('dart.js', 'contents of dart.js'), | 39 d.file('dart.js', 'contents of dart.js'), |
46 d.file('interop.js', 'contents of interop.js') | 40 d.file('interop.js', 'contents of interop.js') |
47 ])]) | 41 ])]) |
48 ]) | 42 ]) |
49 ]) | 43 ]) |
50 ]).validate(); | 44 ]).validate(); |
51 }); | 45 }); |
52 } | 46 } |
OLD | NEW |