| 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 import 'utils.dart'; | 13 import 'utils.dart'; |
| 10 | 14 |
| 11 main() { | 15 main() { |
| 12 initConfig(); | |
| 13 | |
| 14 integration("compiles dart.js and interop.js next to entrypoints", () { | 16 integration("compiles dart.js and interop.js next to entrypoints", () { |
| 15 // Dart2js can take a long time to compile dart code, so we increase the | |
| 16 // timeout to cope with that. | |
| 17 currentSchedule.timeout *= 3; | |
| 18 | |
| 19 serveBrowserPackage(); | 17 serveBrowserPackage(); |
| 20 | 18 |
| 21 d.dir(appPath, [ | 19 d.dir(appPath, [ |
| 22 d.appPubspec({"browser": "1.0.0"}), | 20 d.appPubspec({"browser": "1.0.0"}), |
| 23 d.dir('foo', [ | 21 d.dir('foo', [ |
| 24 d.file('file.dart', 'void main() => print("hello");'), | 22 d.file('file.dart', 'void main() => print("hello");'), |
| 25 d.dir('subdir', [ | 23 d.dir('subdir', [ |
| 26 d.file('subfile.dart', 'void main() => print("subhello");') | 24 d.file('subfile.dart', 'void main() => print("subhello");') |
| 27 ]) | 25 ]) |
| 28 ]), | 26 ]), |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 d.file('dart.js', 'contents of dart.js'), | 64 d.file('dart.js', 'contents of dart.js'), |
| 67 d.file('interop.js', 'contents of interop.js') | 65 d.file('interop.js', 'contents of interop.js') |
| 68 ])]), | 66 ])]), |
| 69 d.matcherFile('subfile.dart.js', isNot(isEmpty)) | 67 d.matcherFile('subfile.dart.js', isNot(isEmpty)) |
| 70 ]) | 68 ]) |
| 71 ]) | 69 ]) |
| 72 ]) | 70 ]) |
| 73 ]).validate(); | 71 ]).validate(); |
| 74 }); | 72 }); |
| 75 } | 73 } |
| OLD | NEW |