diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index cbfb62f8af3..deee3a3eeb2 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -6120,6 +6120,18 @@ "url": "/_mozilla/mozilla/script_type.html" } ], + "mozilla/send-arraybuffer.htm": [ + { + "path": "mozilla/send-arraybuffer.htm", + "url": "/_mozilla/mozilla/send-arraybuffer.htm" + } + ], + "mozilla/send-blob.htm": [ + { + "path": "mozilla/send-blob.htm", + "url": "/_mozilla/mozilla/send-blob.htm" + } + ], "mozilla/sequence-hole.html": [ { "path": "mozilla/sequence-hole.html", diff --git a/tests/wpt/mozilla/tests/mozilla/resources/content.py b/tests/wpt/mozilla/tests/mozilla/resources/content.py new file mode 100644 index 00000000000..9369f21171c --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/resources/content.py @@ -0,0 +1,18 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + + +def main(request, response): + headers = [("Content-type", "text/plain"), + ("X-Request-Method", request.method), + ("X-Request-Query", request.url_parts.query if request.url_parts.query else "NO"), + ("X-Request-Content-Length", request.headers.get("Content-Length", "NO")), + ("X-Request-Content-Type", request.headers.get("Content-Type", "NO"))] + + if "content" in request.GET: + content = request.GET.first("content") + else: + content = request.body + + return headers, content diff --git a/tests/wpt/mozilla/tests/mozilla/send-arraybuffer.htm b/tests/wpt/mozilla/tests/mozilla/send-arraybuffer.htm new file mode 100644 index 00000000000..9b297c8f232 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/send-arraybuffer.htm @@ -0,0 +1,50 @@ + + +
+ + + + + +