summaryrefslogtreecommitdiffstats
path: root/testing/web-platform
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
commit27e021136b6e58143f95ff3df37b58ed699e8b06 (patch)
treebb32fdeb92e178cf7ff76dbf49f051eb60a28532 /testing/web-platform
parentbccb9c1708f007ada1ea8c4879db88a587f0a450 (diff)
downloadUXP-27e021136b6e58143f95ff3df37b58ed699e8b06.tar
UXP-27e021136b6e58143f95ff3df37b58ed699e8b06.tar.gz
UXP-27e021136b6e58143f95ff3df37b58ed699e8b06.tar.lz
UXP-27e021136b6e58143f95ff3df37b58ed699e8b06.tar.xz
UXP-27e021136b6e58143f95ff3df37b58ed699e8b06.zip
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/web-platform')
-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 0bb2e8d0b..a48af8336 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>