1
0
Fork 0
firefox/testing/web-platform/tests/fetch/metadata/trailing-dot.https.sub.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

30 lines
1.4 KiB
JavaScript

// META: global=window,worker
// META: script=/fetch/metadata/resources/helper.js
// Site
promise_test(t => {
return validate_expectations_custom_url("https://{{host}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
"site": "cross-site",
"user": "",
"mode": "cors",
"dest": "empty"
}, "Fetching a resource from the same origin, but spelled with a trailing dot.");
}, "Fetching a resource from the same origin, but spelled with a trailing dot.");
promise_test(t => {
return validate_expectations_custom_url("https://{{hosts[][www]}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
"site": "cross-site",
"user": "",
"mode": "cors",
"dest": "empty"
}, "Fetching a resource from the same site, but spelled with a trailing dot.");
}, "Fetching a resource from the same site, but spelled with a trailing dot.");
promise_test(t => {
return validate_expectations_custom_url("https://{{hosts[alt][www]}}.:{{ports[https][0]}}/fetch/metadata/resources/echo-as-json.py", {}, {
"site": "cross-site",
"user": "",
"mode": "cors",
"dest": "empty"
}, "Fetching a resource from a cross-site host, spelled with a trailing dot.");
}, "Fetching a resource from a cross-site host, spelled with a trailing dot.");