Revision eb9f8a917a751b5bd2e4ed86840eac8b5c4445f2 authored by Brian Birtles on 15 March 2018, 06:57:09 UTC, committed by Brian Birtles on 15 March 2018, 06:57:09 UTC
This patch also drops the test that an AnimationEffectTiming object is created in the appropriate realm since it is no longer the case that a separate timing object is created.
1 parent df2153f
send-redirect-bogus.htm
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: send() - Redirects (bogus Location header)</title>
<meta name=timeout content=long>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following::dl[1]/dt[2] following::dl[1]/dd[2]/ol/li[1] following::dl[1]/dd[2]/ol/li[3]" />
</head>
<body>
<div id="log"></div>
<script>
function redirect(code, location) {
var test = async_test(document.title + " (" + code + ": " + location + ")", {timeout: 20000})
test.step(function() {
var client = new XMLHttpRequest()
client.onreadystatechange = function() {
test.step(function() {
if(client.readyState == 4) {
assert_equals(client.status, 0)
assert_equals(client.statusText, "")
test.done()
}
})
}
client.open("GET", "resources/redirect.py?location=" + location + "&code=" + code)
client.send(null)
})
}
redirect("302", "http://example.not")
redirect("302", "mailto:someone@example.org")
redirect("303", "http://example.not")
redirect("303", "foobar:someone@example.org")
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...