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

Unified Diff: LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html

Issue 291263002: ServiceWorker: Strip fragment from scope and script URLs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make normalizeURL remove fragment 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: LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html
diff --git a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html
index 09046b1667b79ece1fb3a654523c36b1bbfb542c..7795e6b2a289cad1434ee9f68190d1b5dca1a8e2 100644
--- a/LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html
+++ b/LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html
@@ -28,6 +28,9 @@ function scope_test(name, url, scope) {
scope_test('default', 'resources/worker-no-op.js');
scope_test('wildcard', 'resources/worker-no-op.js', '*');
+scope_test('script with fragment', 'resources/worker-no-op.js#ref', 'http://127.0.0.1:8000/*');
+scope_test('scope with fragment', 'resources/worker-no-op.js', 'http://127.0.0.1:8000/*#ref');
+scope_test('scope with query', 'resources/worker-no-op.js', '/a?b=c');
scope_test('relative path', 'resources/worker-no-op.js', '/a/b/c/');
scope_test('relative path with wildcard', 'resources/empty-worker.js', '/a/b/c/*');
scope_test('absolute url', 'resources/empty-worker.js', 'http://127.0.0.1:8000/');

Powered by Google App Engine
This is Rietveld 408576698