Revision fdc6e085458e80d3bfccfe59dc47adc7dd14bc45 authored by Ehsan Karamad on 28 June 2018, 14:54:59 UTC, committed by Blink WPT Bot on 28 June 2018, 15:04:24 UTC
The test has been previously disabled (skipped) on Windows due to recurrent timeouts. Running the test locally leads to an average of ~ 3.7 sec runtime on a high-performance Windows 10 rig (Z840). The test is not skipped on Linux right now, but since its runtime exceeds the 2 sec rule of thumb (from the comments in SlowTests), this CL will make it slow on Linux as well. Bug: 850964 Change-Id: Ib478c0f59313da4302325578d9b768e1070bdcb6 Reviewed-on: https://chromium-review.googlesource.com/1115214 Reviewed-by: Ehsan Karamad <ekaramad@chromium.org> Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Ehsan Karamad <ekaramad@chromium.org> Cr-Commit-Position: refs/heads/master@{#571116}
1 parent 9704386
send-redirect.htm
<!doctype html>
<html>
<head>
<title>XMLHttpRequest: send() - Redirects (basics)</title>
<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[2]" />
</head>
<body>
<div id="log"></div>
<script>
function redirect(code) {
var test = async_test(document.title + " (" + code + ")")
test.step(function() {
var client = new XMLHttpRequest()
client.onreadystatechange = function() {
test.step(function() {
if(client.readyState == 4) {
assert_equals(client.getResponseHeader("x-request-method"), "GET")
assert_equals(client.getResponseHeader("x-request-content-type"), "application/x-pony")
test.done()
}
})
}
client.open("GET", "resources/redirect.py?location=content.py&code=" + code)
client.setRequestHeader("Content-Type", "application/x-pony")
client.send(null)
})
}
redirect("301")
redirect("302")
redirect("303")
redirect("307")
</script>
</body>
</html>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...