Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-cors-xhr.https.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-cors-xhr.https.html |
similarity index 76% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-cors-xhr.https.html |
index ee22c7fab5a5682a2087b429adf2c9e141275400..3b1f1d6bc321e4a453cb61ebf6f16d81d7708ef1 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-cors-xhr.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/fetch-cors-xhr.https.html |
@@ -1,9 +1,9 @@ |
<!DOCTYPE html> |
<title>Service Worker: CORS XHR of fetch()</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> |
+<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) { |
@@ -11,7 +11,7 @@ async_test(function(t) { |
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]); |
}); |
}) |