Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html |
similarity index 68% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html |
index d3aa5fadef9396adc9686ae0cc259a5b66096490..fdb64e15d66b29ef707ef89cf76dc0e50e6e01cb 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-canvas-tainting.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-canvas-tainting-cache.https.html |
@@ -1,17 +1,17 @@ |
<!DOCTYPE html> |
-<title>Service Worker: canvas tainting of the fetched image</title> |
-<script src="../resources/testharness.js"></script> |
-<script src="../resources/testharnessreport.js"></script> |
-<script src="../resources/get-host-info.js?pipe=sub"></script> |
-<script src="resources/test-helpers.js"></script> |
+<title>Service Worker: canvas tainting of the fetched image using cached responses</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="resources/get-host-info.sub.js"></script> |
+<script src="resources/test-helpers.sub.js?pipe=sub"></script> |
<body> |
<script> |
async_test(function(t) { |
- var SCOPE = 'resources/fetch-canvas-tainting-iframe.html'; |
+ var SCOPE = 'resources/fetch-canvas-tainting-iframe.html?cache'; |
var SCRIPT = 'resources/fetch-rewrite-worker.js'; |
var host_info = get_host_info(); |
- login(t, host_info.HTTP_ORIGIN, host_info.HTTP_REMOTE_ORIGIN) |
+ login_https(t) |
.then(function() { |
return service_worker_unregister_and_register(t, SCRIPT, SCOPE); |
}) |
@@ -28,7 +28,7 @@ async_test(function(t) { |
service_worker_unregister_and_done(t, SCOPE); |
}); |
frame.contentWindow.postMessage({}, |
- host_info['HTTP_ORIGIN'], |
+ host_info['HTTPS_ORIGIN'], |
[channel.port2]); |
}); |
}) |