From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baumann@progress-linux.org>
Date: Sun, 7 Apr 2024 11:22:09 +0200
Subject: Adding upstream version 110.0.1.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
---
 testing/web-platform/tests/xhr/response-method.htm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 testing/web-platform/tests/xhr/response-method.htm

(limited to 'testing/web-platform/tests/xhr/response-method.htm')

diff --git a/testing/web-platform/tests/xhr/response-method.htm b/testing/web-platform/tests/xhr/response-method.htm
new file mode 100644
index 0000000000..1bf26bac79
--- /dev/null
+++ b/testing/web-platform/tests/xhr/response-method.htm
@@ -0,0 +1,21 @@
+<!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>
-- 
cgit v1.2.3