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

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

Issue 306693002: Remove support for the special "assets" directory. (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/invalid_urls_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/invalid_urls_test.dart b/sdk/lib/_internal/pub/test/serve/invalid_urls_test.dart
index be482454c73b531be5f3e9f359d9a1cf7bcbd35e..29c73a1660083fe3ef1aa5829afa4e81aeeb8c75 100644
--- a/sdk/lib/_internal/pub/test/serve/invalid_urls_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/invalid_urls_test.dart
@@ -19,40 +19,26 @@ main() {
d.appPubspec({
"foo": {"path": "../foo"}
}),
- // Make files that map to the special directory names to ensure they
- // are *not* found.
- d.dir("asset", [
- d.file("packages"),
- d.file("assets")
- ]),
d.dir("lib", [
- d.file("packages"),
- d.file("assets")
+ // Make a file that maps to the special "packages" directory to ensure
+ // it is *not* found.
+ d.file("packages")
]),
d.dir("web", [
- d.file("packages"),
- d.file("assets")
+ d.file("packages")
])
]).create();
pubGet();
pubServe();
requestShould404("packages");
- requestShould404("assets");
requestShould404("packages/");
- requestShould404("assets/");
requestShould404("packages/myapp");
- requestShould404("assets/myapp");
requestShould404("packages/myapp/");
- requestShould404("assets/myapp/");
requestShould404("packages/foo");
- requestShould404("assets/foo");
requestShould404("packages/foo/");
- requestShould404("assets/foo/");
requestShould404("packages/unknown");
- requestShould404("assets/unknown");
requestShould404("packages/unknown/");
- requestShould404("assets/unknown/");
endPubServe();
});

Powered by Google App Engine
This is Rietveld 408576698