Index: sdk/lib/_internal/pub_generated/test/serve/serves_file_with_space_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/serve/serves_file_with_space_test.dart b/sdk/lib/_internal/pub_generated/test/serve/serves_file_with_space_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94fecfdc5a48a2ca5f6617b43f201e50bf375acd |
--- /dev/null |
+++ b/sdk/lib/_internal/pub_generated/test/serve/serves_file_with_space_test.dart |
@@ -0,0 +1,22 @@ |
+library pub_tests; |
+import '../descriptor.dart' as d; |
+import '../test_pub.dart'; |
+import 'utils.dart'; |
+main() { |
+ initConfig(); |
+ integration("serves a filename with a space", () { |
+ d.dir( |
+ appPath, |
+ [ |
+ d.appPubspec(), |
+ d.dir( |
+ "web", |
+ [ |
+ d.file("foo bar.txt", "outer contents"), |
+ d.dir("sub dir", [d.file("inner.txt", "inner contents")])])]).create(); |
+ pubServe(); |
+ requestShouldSucceed("foo%20bar.txt", "outer contents"); |
+ requestShouldSucceed("sub%20dir/inner.txt", "inner contents"); |
+ endPubServe(); |
+ }); |
+} |