mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Bug 1550287 [wpt PR 16567] - Move from hosts[][www] to hosts[alt][] for resource timing tests, a=testonly
Automatic update from web-platform-tests Move from hosts[][www] to hosts[alt][] for resource timing tests (#16567) -- wpt-commits: d73b07b850fa51f23e846518bb6e8c59c58eef19 wpt-pr: 16567
This commit is contained in:
parent
bb2e520dc3
commit
a0a34b7ccd
@ -13,7 +13,7 @@
|
||||
let iframe;
|
||||
const redirect_url = 'common/redirect.py';
|
||||
const url_prefix = redirect_url + '?location=/resource-timing/resources/';
|
||||
const https_url_prefix = redirect_url + '?location=https://{{hosts[][www]}}:{{ports[https][0]}}/resource-timing/resources/';
|
||||
const https_url_prefix = redirect_url + '?location=https://{{hosts[alt][]}}:{{ports[https][0]}}/resource-timing/resources/';
|
||||
function setup_iframe() {
|
||||
const iframe_content =
|
||||
'<link rel="stylesheet" href="/' + url_prefix + 'resource_timing_test0.css"></link>' +
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script>
|
||||
function request() {
|
||||
var client = new XMLHttpRequest,
|
||||
baseurl = "https://{{hosts[][www]}}:{{ports[https][0]}}{{location[pathname]}}",
|
||||
baseurl = "https://{{hosts[alt][]}}:{{ports[https][0]}}{{location[pathname]}}",
|
||||
url = new URL("fake_responses.py", baseurl).href;
|
||||
client.open("GET", url, false)
|
||||
client.send(null)
|
||||
|
@ -2,7 +2,7 @@
|
||||
<script>
|
||||
function request() {
|
||||
var client = new XMLHttpRequest,
|
||||
baseurl = "http://{{hosts[][www]}}:{{ports[http][0]}}{{location[pathname]}}",
|
||||
baseurl = "http://{{hosts[alt][]}}:{{ports[http][0]}}{{location[pathname]}}",
|
||||
subresource = "fake_responses.py",
|
||||
redirecturl = new URL(subresource, "https://{{hosts[][www]}}:{{ports[https][0]}}{{location[pathname]}}").href,
|
||||
url = new URL(subresource + "?redirect=" + redirecturl, baseurl).href;
|
||||
|
Loading…
Reference in New Issue
Block a user