Update web-platform-tests to revision e2ac2e7d7539c4eb9963b7f23dbb3f7692fce537

This commit is contained in:
WPT Sync Bot 2019-01-09 21:01:39 -05:00
parent e6e00cb554
commit 59ef536d5e
120 changed files with 1207 additions and 3167 deletions

View file

@ -39,7 +39,7 @@ function generateURL(host, protocol, resourceType) {
}
function generateRedirect(host, protocol, target) {
var url = "http://{{host}}:{{ports[https][0]}}/common/redirect.py?location=" + encodeURIComponent(target.url);
var url = new URL("http://{{host}}:{{ports[https][0]}}/common/redirect.py?location=" + encodeURIComponent(target.url));
url.protocol = protocol == Protocol.INSECURE ? "http" : "https";
url.hostname = host == Host.SAME_ORIGIN ? "{{host}}" : "{{domains[天気の良い日]}}";
return {