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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html

Issue 2872363002: Upstream service worker navigation tests to WPT (Closed)
Patch Set: Created 3 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: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html
index 586e9036a3e9e21f8e660a77aa6a2ddb3b4aa15e..e311bb635367ac22f08c910b585c0a85ae3e3af1 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect.https.html
@@ -176,7 +176,7 @@ promise_test(function(t) {
return test_redirect(
SCOPE1 + 'url=' + encodeURIComponent(SCOPE1),
SCOPE1,
- [[SCOPE1 + 'url=' + encodeURIComponent(SCOPE1)], [], []]);
+ [[SCOPE1 + 'url=' + encodeURIComponent(SCOPE1), SCOPE1], [], []]);
});
}, 'SW-fallbacked redirect to same-origin same-scope.');
promise_test(function(t) {
@@ -184,7 +184,7 @@ promise_test(function(t) {
return test_redirect(
SCOPE1 + 'url=' + encodeURIComponent(SCOPE2),
SCOPE2,
- [[SCOPE1 + 'url=' + encodeURIComponent(SCOPE2)], [], []]);
+ [[SCOPE1 + 'url=' + encodeURIComponent(SCOPE2)], [SCOPE2], []]);
});
}, 'SW-fallbacked redirect to same-origin other-scope.');
promise_test(function(t) {
@@ -204,7 +204,7 @@ promise_test(function(t) {
OTHER_ORIGIN_SCOPE,
[[SCOPE1 + 'url=' + encodeURIComponent(OTHER_ORIGIN_SCOPE)],
[],
- []]);
+ [OTHER_ORIGIN_SCOPE]]);
});
}, 'SW-fallbacked redirect to other-origin in-scope.');
@@ -372,6 +372,16 @@ promise_test(function(t) {
[OTHER_ORIGIN_SCOPE]]);
});
}, 'Redirect to other-origin in-scope with opaque redirect response.');
+promise_test(function(t) {
+ return setup_environment(t).then(function() {
+ return test_redirect(
+ SCOPE1 + 'sw=opaque&noLocationRedirect',
+ SCOPE1 + 'sw=opaque&noLocationRedirect',
+ [[SCOPE1 + 'sw=opaque&noLocationRedirect'],
+ [],
+ []]);
+ });
+ }, 'No location redirect response.');
// Opaque redirect passed through Cache.
// SW responds with an opaque redirectresponse from the Cache API.
@@ -445,5 +455,15 @@ promise_test(function(t) {
},
'Redirect to other-origin in-scope with opaque redirect response which ' +
'is passed through Cache.');
+promise_test(function(t) {
+ return setup_environment(t).then(function() {
+ return test_redirect(
+ SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect',
+ SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect',
+ [[SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect'],
+ [],
+ []]);
+ });
+ }, 'No location redirect response via Cache.');
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698