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("serves index.html for directories", () { |
| 8 d.dir( |
| 9 appPath, |
| 10 [ |
| 11 d.appPubspec(), |
| 12 d.dir( |
| 13 "web", |
| 14 [ |
| 15 d.file("index.html", "<body>super"), |
| 16 d.dir("sub", [d.file("index.html", "<body>sub")])])]).create
(); |
| 17 pubServe(); |
| 18 requestShouldSucceed("", "<body>super"); |
| 19 requestShouldSucceed("sub/", "<body>sub"); |
| 20 requestShouldRedirect("sub", "/sub/"); |
| 21 endPubServe(); |
| 22 }); |
| 23 } |
OLD | NEW |