OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import '../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 setUp(() { |
| 8 d.dir( |
| 9 appPath, |
| 10 [ |
| 11 d.appPubspec(), |
| 12 d.dir( |
| 13 'web', |
| 14 [ |
| 15 d.file('file1.dart', 'var main = () => print("hello");'), |
| 16 d.file('file2.dart', 'void main(arg1, arg2, arg3) => print("
hello");'), |
| 17 d.file('file3.dart', 'class Foo { void main() => print("hell
o"); }'), |
| 18 d.file('file4.dart', 'var foo;')])]).create(); |
| 19 }); |
| 20 integration("build ignores non-entrypoint Dart files", () { |
| 21 schedulePub( |
| 22 args: ["build"], |
| 23 output: new RegExp(r'Built 0 files to "build".')); |
| 24 d.dir(appPath, [d.dir('build', [d.nothing('web')])]).validate(); |
| 25 }); |
| 26 integration("serve ignores non-entrypoint Dart files", () { |
| 27 pubServe(); |
| 28 requestShould404("file1.dart.js"); |
| 29 requestShould404("file2.dart.js"); |
| 30 requestShould404("file3.dart.js"); |
| 31 requestShould404("file4.dart.js"); |
| 32 endPubServe(); |
| 33 }); |
| 34 } |
OLD | NEW |