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("supports a user-defined lazy transformer", () { |
| 9 d.dir(appPath, [d.pubspec({ |
| 10 "name": "myapp", |
| 11 "transformers": ["myapp/src/transformer"] |
| 12 }), |
| 13 d.dir("lib", [d.dir("src", [d.file("transformer.dart", LAZY_TRANSFOR
MER)])]), |
| 14 d.dir("web", [d.file("foo.txt", "foo")])]).create(); |
| 15 createLockFile('myapp', pkg: ['barback']); |
| 16 var server = pubServe(); |
| 17 server.stdout.expect('Build completed successfully'); |
| 18 requestShouldSucceed("foo.out", "foo.out"); |
| 19 server.stdout.expect( |
| 20 emitsLines('[Info from LazyRewrite]:\n' 'Rewriting myapp|web/foo.txt.'
)); |
| 21 endPubServe(); |
| 22 }); |
| 23 }); |
| 24 } |
OLD | NEW |