OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 import '../serve/utils.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 withBarbackVersions("any", () { |
| 8 integration("runs a third-party transform on the application package", () { |
| 9 d.dir( |
| 10 "foo", |
| 11 [ |
| 12 d.libPubspec("foo", '1.0.0'), |
| 13 d.dir("lib", [d.file("foo.dart", REWRITE_TRANSFORMER)])]).create()
; |
| 14 d.dir(appPath, [d.pubspec({ |
| 15 "name": "myapp", |
| 16 "dependencies": { |
| 17 "foo": { |
| 18 "path": "../foo" |
| 19 } |
| 20 }, |
| 21 "transformers": ["foo"] |
| 22 }), d.dir("web", [d.file("foo.txt", "foo")])]).create(); |
| 23 createLockFile('myapp', sandbox: ['foo'], pkg: ['barback']); |
| 24 pubServe(); |
| 25 requestShouldSucceed("foo.out", "foo.out"); |
| 26 endPubServe(); |
| 27 }); |
| 28 }); |
| 29 } |
OLD | NEW |