| 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 'dart:convert'; | 9 import 'dart:convert'; |
| 6 | 10 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | 11 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 | 12 |
| 9 import '../descriptor.dart' as d; | 13 import '../descriptor.dart' as d; |
| 10 import '../test_pub.dart'; | 14 import '../test_pub.dart'; |
| 11 | 15 |
| 12 main() { | 16 main() { |
| 13 initConfig(); | |
| 14 integration("compiles dart.js and interop.js next to entrypoints when " | 17 integration("compiles dart.js and interop.js next to entrypoints when " |
| 15 "dartjs is explicitly configured", () { | 18 "dartjs is explicitly configured", () { |
| 16 // Dart2js can take a long time to compile dart code, so we increase the | |
| 17 // timeout to cope with that. | |
| 18 currentSchedule.timeout *= 3; | |
| 19 | |
| 20 serve([ | 19 serve([ |
| 21 d.dir('api', [ | 20 d.dir('api', [ |
| 22 d.dir('packages', [ | 21 d.dir('packages', [ |
| 23 d.file('browser', JSON.encode({ | 22 d.file('browser', JSON.encode({ |
| 24 'versions': [packageVersionApiMap(packageMap('browser', '1.0.0'))] | 23 'versions': [packageVersionApiMap(packageMap('browser', '1.0.0'))] |
| 25 })), | 24 })), |
| 26 d.dir('browser', [ | 25 d.dir('browser', [ |
| 27 d.dir('versions', [ | 26 d.dir('versions', [ |
| 28 d.file('1.0.0', JSON.encode( | 27 d.file('1.0.0', JSON.encode( |
| 29 packageVersionApiMap( | 28 packageVersionApiMap( |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 d.dir('browser', [ | 78 d.dir('browser', [ |
| 80 d.file('dart.js', 'contents of dart.js'), | 79 d.file('dart.js', 'contents of dart.js'), |
| 81 d.file('interop.js', 'contents of interop.js') | 80 d.file('interop.js', 'contents of interop.js') |
| 82 ]) | 81 ]) |
| 83 ]), | 82 ]), |
| 84 ]) | 83 ]) |
| 85 ]) | 84 ]) |
| 86 ]).validate(); | 85 ]).validate(); |
| 87 }); | 86 }); |
| 88 } | 87 } |
| OLD | NEW |