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:
youennf 2019-05-20 12:55:23 +00:00 committed by James Graham
parent bb2e520dc3
commit a0a34b7ccd
3 changed files with 3 additions and 3 deletions

View File

@ -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>' +

View File

@ -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)

View File

@ -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;