summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-24 11:47:08 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-24 11:47:08 +0200
commit77e95190d90cd5910d98f00ed6a6ac0968ee0c4e (patch)
treebb32fdeb92e178cf7ff76dbf49f051eb60a28532 /testing
parent6804c95e3eaacfaaa12e7965fa43dc89452d9210 (diff)
downloaduxp-77e95190d90cd5910d98f00ed6a6ac0968ee0c4e.tar.gz
moebius#312: DOM - Fix incorrect TypeError: Response body is given with a null body status
https://github.com/MoonchildProductions/moebius/issues/312
Diffstat (limited to 'testing')
-rw-r--r--testing/web-platform/tests/fetch/api/response/response-init-002.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fetch/api/response/response-init-002.html b/testing/web-platform/tests/fetch/api/response/response-init-002.html
index 0bb2e8d0b3..a48af83364 100644
--- a/testing/web-platform/tests/fetch/api/response/response-init-002.html
+++ b/testing/web-platform/tests/fetch/api/response/response-init-002.html
@@ -65,6 +65,11 @@
});
}, "Testing empty Response Content-Type header");
+ test(function() {
+ var response = new Response(null, {status: 204});
+ assert_equals(response.body, null);
+ }, "Testing null Response body");
+
</script>
</body>
</html>