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

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

Issue 134263007: Only allow “assets” to appear in the root of a URL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/serve_from_dependency_asset_test.dart
diff --git a/sdk/lib/_internal/pub/test/serve/serve_from_dependency_asset_test.dart b/sdk/lib/_internal/pub/test/serve/serve_from_dependency_asset_test.dart
index 08c76e02575c2514900ae947a2acc32b6c1515ac..f026d8aacd9c94d456c15edf4c93524dfc6c2707 100644
--- a/sdk/lib/_internal/pub/test/serve/serve_from_dependency_asset_test.dart
+++ b/sdk/lib/_internal/pub/test/serve/serve_from_dependency_asset_test.dart
@@ -31,9 +31,9 @@ main() {
requestShouldSucceed("assets/foo/foo.txt", "foo");
requestShouldSucceed("assets/foo/sub/bar.txt", "bar");
- // "assets" can be in a subpath of the URL:
- requestShouldSucceed("foo/assets/foo/foo.txt", "foo");
- requestShouldSucceed("a/b/assets/foo/sub/bar.txt", "bar");
+ // "assets" cannot be in a subpath of the URL:
+ requestShould404("foo/assets/foo/foo.txt");
+ requestShould404("a/b/assets/foo/sub/bar.txt");
endPubServe();
});
}

Powered by Google App Engine
This is Rietveld 408576698