OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:path/path.dart' as path; |
| 3 import 'package:scheduled_test/scheduled_test.dart'; |
| 4 import '../../lib/src/io.dart'; |
| 5 import '../descriptor.dart' as d; |
| 6 import '../test_pub.dart'; |
| 7 import 'utils.dart'; |
| 8 main() { |
| 9 initConfig(); |
| 10 integration( |
| 11 "stop serving a file that is removed when using the native " "watcher", |
| 12 () { |
| 13 d.dir( |
| 14 appPath, |
| 15 [d.appPubspec(), d.dir("web", [d.file("index.html", "body")])]).create()
; |
| 16 pubServe(args: ["--no-force-poll"]); |
| 17 requestShouldSucceed("index.html", "body"); |
| 18 schedule( |
| 19 () => deleteEntry(path.join(sandboxDir, appPath, "web", "index.html"))); |
| 20 waitForBuildSuccess(); |
| 21 requestShould404("index.html"); |
| 22 endPubServe(); |
| 23 }); |
| 24 } |
OLD | NEW |