Commit c6482434 authored by kdillon's avatar kdillon Committed by Commit Bot

Fixing test to use wpt server features.

Change-Id: I6c40eacb5635461375543d857b37bb2bd36a2805
Reviewed-on: https://chromium-review.googlesource.com/c/1446773Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#627717}
parent 7156a6f6
......@@ -800,6 +800,4 @@ CSS-COLLIDING-REF-NAME: css/vendor-imports/mozilla/mozilla-central-reftests/cont
# Signed Exchange files have hard-coded URLs in the certUrl field
WEB-PLATFORM.TEST:signed-exchange/resources/*.sxg
WEB-PLATFORM.TEST:signed-exchange/resources/generate-test-sxgs.sh
WEB-PLATFORM.TEST: workers/Worker-location.any.js
\ No newline at end of file
WEB-PLATFORM.TEST:signed-exchange/resources/generate-test-sxgs.sh
\ No newline at end of file
......@@ -2,13 +2,13 @@
test(() => {
assert_equals(String(WorkerLocation), "function WorkerLocation() { [native code] }");
assert_true(location instanceof Object);
assert_equals(location.href, "http://web-platform.test:8001/workers/Worker-location.any.worker.js")
assert_equals(location.origin, "http://web-platform.test:8001");
assert_equals(location.href, 'http://{{host}}:{{ports[http][0]}}/workers/Worker-location.sub.any.worker.js');
assert_equals(location.origin, "http://{{host}}:{{ports[http][0]}}");
assert_equals(location.protocol, "http:");
assert_equals(location.host, "web-platform.test:8001");
assert_equals(location.hostname, "web-platform.test");
assert_equals(location.port, "8001");
assert_equals(location.pathname, "/workers/Worker-location.any.worker.js");
assert_equals(location.host, "{{host}}:{{ports[http][0]}}");
assert_equals(location.hostname, "{{host}}");
assert_equals(location.port, "{{ports[http][0]}}");
assert_equals(location.pathname, "/workers/Worker-location.sub.any.worker.js");
assert_equals(location.search, "");
assert_equals(location.hash, "");
}, 'Test WorkerLocation properties.');
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment