Index: sdk/lib/_internal/pub_generated/test/serve/serves_index_html_for_directories_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/serve/serves_index_html_for_directories_test.dart b/sdk/lib/_internal/pub_generated/test/serve/serves_index_html_for_directories_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3fbc8ff73be4cce13d6eef199e677b2d6567ee0d |
--- /dev/null |
+++ b/sdk/lib/_internal/pub_generated/test/serve/serves_index_html_for_directories_test.dart |
@@ -0,0 +1,23 @@ |
+library pub_tests; |
+import '../descriptor.dart' as d; |
+import '../test_pub.dart'; |
+import 'utils.dart'; |
+main() { |
+ initConfig(); |
+ integration("serves index.html for directories", () { |
+ d.dir( |
+ appPath, |
+ [ |
+ d.appPubspec(), |
+ d.dir( |
+ "web", |
+ [ |
+ d.file("index.html", "<body>super"), |
+ d.dir("sub", [d.file("index.html", "<body>sub")])])]).create(); |
+ pubServe(); |
+ requestShouldSucceed("", "<body>super"); |
+ requestShouldSucceed("sub/", "<body>sub"); |
+ requestShouldRedirect("sub", "/sub/"); |
+ endPubServe(); |
+ }); |
+} |