1
0
Fork 0
firefox/testing/web-platform/tests/xhr/response-method.htm
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

21 lines
631 B
HTML

<!doctype html>
<html>
<head>
<title>XMLHttpRequest: influence of HTTP method on response</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
["GET", "HEAD", "POST"].forEach(function(method) {
test(function() {
var client = new XMLHttpRequest()
client.open(method, "resources/echo-method.py", false)
client.send()
assert_equals(client.responseText, (method === "HEAD" ? "" : method))
}, method)
})
</script>
</body>
</html>