OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_stream.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import '../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration("does not compile until its output is requested", () { |
| 8 d.dir(appPath, [d.pubspec({ |
| 9 "name": "myapp", |
| 10 "version": "0.0.1" |
| 11 }), |
| 12 d.dir("web", [d.file("syntax-error.dart", "syntax error")])]).create()
; |
| 13 var server = pubServe(); |
| 14 server.stdout.expect("Build completed successfully"); |
| 15 requestShould404("syntax-error.dart.js"); |
| 16 server.stdout.expect( |
| 17 emitsLines( |
| 18 "[Info from Dart2JS]:\n" "Compiling myapp|web/syntax-error.dart...")
); |
| 19 server.stdout.expect(consumeThrough("Build completed with 1 errors.")); |
| 20 endPubServe(); |
| 21 }); |
| 22 } |
OLD | NEW |