| 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 // 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 integration("compiles Dart entrypoints in root package to JS", () { | 15 integration("compiles Dart entrypoints in root package to JS", () { |
| 13 // Dart2js can take a long time to compile dart code, so we increase the | |
| 14 // timeout to cope with that. | |
| 15 currentSchedule.timeout *= 3; | |
| 16 | |
| 17 d.dir(appPath, [ | 16 d.dir(appPath, [ |
| 18 d.appPubspec(), | 17 d.appPubspec(), |
| 19 d.dir('benchmark', [ | 18 d.dir('benchmark', [ |
| 20 d.file('file.dart', 'void main() => print("hello");'), | 19 d.file('file.dart', 'void main() => print("hello");'), |
| 21 d.file('lib.dart', 'void foo() => print("hello");'), | 20 d.file('lib.dart', 'void foo() => print("hello");'), |
| 22 d.dir('subdir', [ | 21 d.dir('subdir', [ |
| 23 d.file('subfile.dart', 'void main() => print("ping");') | 22 d.file('subfile.dart', 'void main() => print("ping");') |
| 24 ]) | 23 ]) |
| 25 ]), | 24 ]), |
| 26 d.dir('foo', [ | 25 d.dir('foo', [ |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 d.nothing('lib.dart'), | 67 d.nothing('lib.dart'), |
| 69 d.dir('subdir', [ | 68 d.dir('subdir', [ |
| 70 d.matcherFile('subfile.dart.js', isNot(isEmpty)), | 69 d.matcherFile('subfile.dart.js', isNot(isEmpty)), |
| 71 d.nothing('subfile.dart') | 70 d.nothing('subfile.dart') |
| 72 ]) | 71 ]) |
| 73 ]) | 72 ]) |
| 74 ]) | 73 ]) |
| 75 ]).validate(); | 74 ]).validate(); |
| 76 }); | 75 }); |
| 77 } | 76 } |
| OLD | NEW |