Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/get-host-info.sub.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/resources/get-host-info.js b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/get-host-info.sub.js |
similarity index 73% |
copy from third_party/WebKit/LayoutTests/http/tests/resources/get-host-info.js |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/get-host-info.sub.js |
index a7d31d7a5dd066842934a23b76f8b2ad44ac54a1..b64334df667d7f9784722699e08290b89888cc29 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/resources/get-host-info.js |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/get-host-info.sub.js |
@@ -1,8 +1,7 @@ |
function get_host_info() { |
var ORIGINAL_HOST = '127.0.0.1'; |
var REMOTE_HOST = 'localhost'; |
- // TODO(mkwst): This should be a host that WPT supports. I don't know why we're using 'example.test'. |
- var OTHER_HOST = 'example.test'; |
+ var UNAUTHENTICATED_HOST = 'example.test'; |
var HTTP_PORT = 8000; |
var HTTPS_PORT = 8443; |
try { |
@@ -18,9 +17,10 @@ function get_host_info() { |
return { |
HTTP_ORIGIN: 'http://' + ORIGINAL_HOST + ':' + HTTP_PORT, |
HTTPS_ORIGIN: 'https://' + ORIGINAL_HOST + ':' + HTTPS_PORT, |
+ HTTPS_ORIGIN_WITH_CREDS: 'https://foo:bar@' + ORIGINAL_HOST + ':' + HTTPS_PORT, |
HTTP_REMOTE_ORIGIN: 'http://' + REMOTE_HOST + ':' + HTTP_PORT, |
HTTPS_REMOTE_ORIGIN: 'https://' + REMOTE_HOST + ':' + HTTPS_PORT, |
- UNAUTHENTICATED_ORIGIN: 'http://' + OTHER_HOST + ':' + HTTP_PORT, |
- AUTHENTICATED_ORIGIN: 'https://' + OTHER_HOST + ':' + HTTPS_PORT |
+ HTTPS_REMOTE_ORIGIN_WITH_CREDS: 'https://foo:bar@' + REMOTE_HOST + ':' + HTTPS_PORT, |
+ UNAUTHENTICATED_ORIGIN: 'http://' + UNAUTHENTICATED_HOST + ':' + HTTP_PORT |
}; |
} |