Bug 1541558 [wpt PR 16048] - CORS/XHR: mark Client Hints tentative, a=testonly

Automatic update from web-platform-tests
CORS/XHR: mark Client Hints tentative

This ensures Client Hints related tests outside the client-hints/ directory are marked as tentative (and one is effectively removed as it duplicates other tests) as there's no Fetch integration anymore.

--

wpt-commits: cc011877337a36d13bdbcc9f40faab438e5ae0c9
wpt-pr: 16048
This commit is contained in:
moz-wptsync-bot 2019-04-18 11:29:20 +00:00 коммит произвёл James Graham
Родитель c8a3718950
Коммит 6ad4d29c17
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -9,6 +9,7 @@
<h1>Request headers</h1>
<div id=log></div>
<script>
test(function() {
var client = new XMLHttpRequest()
client.open('GET', CROSSDOMAIN + 'resources/cors-makeheader.py?headers=x-print,', false)
@ -23,6 +24,7 @@ test(function() {
client.setRequestHeader('width', '35')
client.setRequestHeader('viewport-width', '42')
client.send(null)
const res = JSON.parse(client.response)
assert_equals(res['x-print'], 'unicorn')
assert_equals(res['content-type'], 'text/plain')
@ -35,4 +37,5 @@ test(function() {
assert_equals(res['width'], '35')
assert_equals(res['viewport-width'], '42')
}, 'Client hint headers are simple headers')
</script>

Просмотреть файл

@ -13,7 +13,9 @@
<div id=log></div>
<script>
var test_c = 0;
function check_simple(method, headers)
{
test(function() {
@ -29,6 +31,7 @@ function check_simple(method, headers)
assert_equals(client.response, '', 'response')
else
assert_equals(client.response, 'NO', 'response')
client.open('GET', 'resources/preflight.py?check&token='
+ uuid_token, false)
client.send("data")
@ -36,11 +39,13 @@ function check_simple(method, headers)
},
'No preflight ' + method + ' and ' + JSON.stringify(headers))
}
function check_simple_headers(headers) {
check_simple('GET', headers)
check_simple('HEAD', headers)
check_simple('POST', headers)
}
check_simple_headers({
'save-data': 'on',
'device-memory': '2.0',
@ -48,4 +53,5 @@ check_simple_headers({
'width': '1200',
'viewport-width': '1300'
})
</script>