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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/get-host-info.sub.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/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
};
}

Powered by Google App Engine
This is Rietveld 408576698