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 integration("picks up files added after serving started", () { |
| 8 d.dir( |
| 9 appPath, |
| 10 [d.appPubspec(), d.dir("web", [d.file("index.html", "body")])]).create()
; |
| 11 pubServe(); |
| 12 waitForBuildSuccess(); |
| 13 requestShouldSucceed("index.html", "body"); |
| 14 d.dir(appPath, [d.dir("web", [d.file("other.html", "added")])]).create(); |
| 15 waitForBuildSuccess(); |
| 16 requestShouldSucceed("other.html", "added"); |
| 17 endPubServe(); |
| 18 }); |
| 19 } |
OLD | NEW |