mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
631 B
HTML
22 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>
|