mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -4,7 +4,7 @@
|
|||
<title>XMLHttpRequest: send() - Accept-Language</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(text(),'Accept-Language')]/.. following::code[contains(text(),'Accept-Language')]/../following::ul[1]/li[1] following::code[contains(text(),'Accept-Language')]/../following::ul[1]/li[2]" />
|
||||
<link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method">
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
|
@ -13,14 +13,14 @@
|
|||
var client = new XMLHttpRequest()
|
||||
client.open('GET', 'resources/inspect-headers.py?filter_name=accept-language', false)
|
||||
client.send(null)
|
||||
assert_regexp_match(client.responseText, /accept-language:\s.+/)
|
||||
assert_regexp_match(client.responseText, /Accept-Language:\s.+/)
|
||||
}, 'Send "sensible" default value, whatever that means')
|
||||
test(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.open("GET", "resources/inspect-headers.py?filter_name=accept-language", false)
|
||||
client.setRequestHeader("Accept-Language", "x-GameSpeak")
|
||||
client.send(null)
|
||||
assert_equals(client.responseText, "accept-language: x-GameSpeak\n")
|
||||
assert_equals(client.responseText, "Accept-Language: x-GameSpeak\n")
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue