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

Unified Diff: sdk/lib/_internal/pub/test/serve/serves_hidden_assets_that_arent_gitignored_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. 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_hidden_assets_that_arent_gitignored_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart b/sdk/lib/_internal/pub/test/serve/serves_hidden_assets_that_arent_gitignored_test.dart
similarity index 63%
copy from sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
copy to sdk/lib/_internal/pub/test/serve/serves_hidden_assets_that_arent_gitignored_test.dart
index eead8082839c9d4283c884473baf40648f6c38a7..5ef198f5b008f5cf1c3cb9b74feab5cb83ffd9b0 100644
--- a/sdk/lib/_internal/pub/test/serve/serves_file_with_space_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/serves_hidden_assets_that_arent_gitignored_test.dart
@@ -10,20 +10,22 @@ import 'utils.dart';
main() {
initConfig();
- integration("serves a filename with a space", () {
- d.dir(appPath, [
+ integration("serves hidden assets that aren't .gitignored", () {
+ ensureGit();
+
+ d.git(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");
+ requestShouldSucceed(".outer.txt", "outer contents");
+ requestShouldSucceed(".dir/inner.txt", "inner contents");
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698