OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import 'utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 withBarbackVersions("any", () { |
| 8 integration("doesn't crash if an unused .dart file has a syntax error", () { |
| 9 d.dir(appPath, [d.pubspec({ |
| 10 "name": "myapp", |
| 11 "transformers": ["myapp/src/transformer"] |
| 12 }), |
| 13 d.dir( |
| 14 "lib", |
| 15 [ |
| 16 d.dir( |
| 17 "src", |
| 18 [ |
| 19 d.file("transformer.dart", REWRITE_TRANSFORMER), |
| 20 d.file("unused.dart", "(*&^#@")])]), |
| 21 d.dir("web", [d.file("foo.txt", "foo")])]).create(); |
| 22 createLockFile('myapp', pkg: ['barback']); |
| 23 var server = pubServe(); |
| 24 requestShouldSucceed("foo.out", "foo.out"); |
| 25 endPubServe(); |
| 26 }); |
| 27 }); |
| 28 } |
OLD | NEW |