Chromium Code Reviews

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

Issue 342553002: Respect git's ignore rules pervasively in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review, performance improvements Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/test/serve/does_not_serve_hidden_assets_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart b/sdk/lib/_internal/pub/test/serve/does_not_serve_hidden_assets_test.dart
similarity index 67%
copy from sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
copy to sdk/lib/_internal/pub/test/serve/does_not_serve_hidden_assets_test.dart
index eead8082839c9d4283c884473baf40648f6c38a7..0429e7efd7ed91cba68a15506c1ef832e72c97ad 100644
--- a/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/does_not_serve_hidden_assets_test.dart
@@ -10,20 +10,20 @@ import 'utils.dart';
main() {
initConfig();
- integration("serves a filename with a space", () {
+ integration("doesn't serve hidden assets", () {
d.dir(appPath, [
d.appPubspec(),
d.dir("web", [
- d.file("foo bar.txt", "outer contents"),
- d.dir("sub dir", [
+ d.file(".outer.txt", "outer contents"),
+ d.dir(".dir", [
d.file("inner.txt", "inner contents"),
])
])
]).create();
pubServe();
- requestShouldSucceed("foo%20bar.txt", "outer contents");
- requestShouldSucceed("sub%20dir/inner.txt", "inner contents");
+ requestShould404(".outer.txt");
+ requestShould404(".dir/inner.txt");
endPubServe();
});
}

Powered by Google App Engine