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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/opaque-response-preloaded-iframe.html

Issue 2877673004: Upstream service worker opaque-response-preloaded.https.html test to WPT (Closed)
Patch Set: Incorporate review feedback 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/resources/opaque-response-preloaded-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/opaque-response-in-memorycache-iframe.html b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/opaque-response-preloaded-iframe.html
similarity index 81%
rename from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/opaque-response-in-memorycache-iframe.html
rename to third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/opaque-response-preloaded-iframe.html
index 5214b91d66ee189ba35c69c5d11b804dd0d6042a..9c0eed1d720dc3e05263f789f45f5ebe7eaa70f9 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/opaque-response-in-memorycache-iframe.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/opaque-response-preloaded-iframe.html
@@ -4,6 +4,8 @@
<script>
function runTest() {
var l = document.createElement('link');
+ // Use link rel=preload to try to get the browser to cache the opaque
+ // response.
l.setAttribute('rel', 'preload');
l.setAttribute('href', 'opaque-response');
l.onload = function() {
@@ -12,8 +14,8 @@ function runTest() {
xhr.open('GET', 'opaque-response');
// opaque-response returns an opaque response from serviceworker and thus
// the XHR must fail because it is not no-cors request.
- // Particularly, the XHR must not reuse preloaded the opaque response on
- // MemoryCache.
+ // Particularly, the XHR must not reuse the opaque response from the
+ // preload request.
xhr.onerror = function() {
parent.done('PASS');
};

Powered by Google App Engine
This is Rietveld 408576698