Update web-platform-tests to revision 181f8381fe9373e027f4b5ba5d1439843ad2c2e6

This commit is contained in:
WPT Sync Bot 2019-02-21 21:02:15 -05:00
parent 0dda115609
commit 0355b8e70d
105 changed files with 2775 additions and 764 deletions

View file

@ -6,6 +6,7 @@
<script src="/resources/testharnessreport.js"></script>
<script src="/referrer-policy/generic/common.js"></script>
<script src="/referrer-policy/generic/referrer-policy-test-case.js"></script>
</head>
<body>
<h1>Referrer Policy: multiple Referrer-Policy header and header values are allowed</h1>
@ -14,14 +15,15 @@
<pre id="received_message">Running...</pre>
<script>
var test = async_test("Image uses the last recognized Referrer-Policy header value");
var urlPath = '/referrer-policy/generic/subresource/image.py?cache_destroyer=' + (new Date()).getTime();
var url = location.protocol + "//www1." + location.hostname + ":" + location.port +
urlPath;
queryImage(url, test.step_func(function(message) {
assert_equals(message.referrer, document.location.origin + "/");
test.done();
}), null, 'no-referrer', test);
promise_test(() => {
var urlPath = '/referrer-policy/generic/subresource/image.py?cache_destroyer=' + (new Date()).getTime();
var url = location.protocol + "//www1." + location.hostname + ":" + location.port +
urlPath;
return requestViaImageForReferrerPolicy(url, null, 'no-referrer')
.then(function(message) {
assert_equals(message.referrer, document.location.origin + "/");
});
}, "Image uses the last recognized Referrer-Policy header value");
</script>
<div id="log"></div>