OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration("includes Dart files in debug mode", () { |
| 7 d.dir( |
| 8 appPath, |
| 9 [ |
| 10 d.appPubspec(), |
| 11 d.dir( |
| 12 'web', |
| 13 [ |
| 14 d.file('file1.dart', 'var main = () => print("hello");'), |
| 15 d.file('file2.dart', 'void main(arg1, arg2, arg3) => print("
hello");'), |
| 16 d.file('file3.dart', 'class Foo { void main() => print("hell
o"); }'), |
| 17 d.file('file4.dart', 'var foo;')])]).create(); |
| 18 schedulePub( |
| 19 args: ["build", "--mode", "debug"], |
| 20 output: new RegExp(r'Built \d+ files to "build".')); |
| 21 d.dir( |
| 22 appPath, |
| 23 [ |
| 24 d.dir( |
| 25 'build', |
| 26 [ |
| 27 d.dir( |
| 28 'web', |
| 29 [ |
| 30 d.nothing('file1.dart.js'), |
| 31 d.matcherFile('file1.dart', isNot(isEmpty)), |
| 32 d.nothing('file2.dart.js'), |
| 33 d.matcherFile('file2.dart', isNot(isEmpty)), |
| 34 d.nothing('file3.dart.js'), |
| 35 d.matcherFile('file3.dart', isNot(isEmpty)), |
| 36 d.nothing('file4.dart.js'), |
| 37 d.matcherFile('file4.dart', isNot(isEmpty))])])]).va
lidate(); |
| 38 }); |
| 39 } |
OLD | NEW |