Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart

Issue 312523007: Fix URL/native path conversions in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/serves_index_html_for_directories_test.dart b/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
similarity index 61%
copy from sdk/lib/_internal/pub/test/serve/serves_index_html_for_directories_test.dart
copy to sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
index 0974381601f7ea439833769314dfcaafb1fb40af..eead8082839c9d4283c884473baf40648f6c38a7 100644
--- a/sdk/lib/_internal/pub/test/serve/serves_index_html_for_directories_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
@@ -10,21 +10,20 @@ import 'utils.dart';
main() {
initConfig();
- integration("serves index.html for directories", () {
+ integration("serves a filename with a space", () {
d.dir(appPath, [
d.appPubspec(),
d.dir("web", [
- d.file("index.html", "<body>super"),
- d.dir("sub", [
- d.file("index.html", "<body>sub")
+ d.file("foo bar.txt", "outer contents"),
+ d.dir("sub dir", [
+ d.file("inner.txt", "inner contents"),
])
])
]).create();
pubServe();
- requestShouldSucceed("", "<body>super");
- requestShouldSucceed("sub/", "<body>sub");
- requestShouldRedirect("sub", "/sub/");
+ requestShouldSucceed("foo%20bar.txt", "outer contents");
+ requestShouldSucceed("sub%20dir/inner.txt", "inner contents");
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698