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'); |
}; |