summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-24 19:34:41 +0200
committerGitHub <noreply@github.com>2018-04-24 19:34:41 +0200
commit844da2ccc666afa713ca1e3e7caa077de4a9250d (patch)
treeee10f014c8e45cf67b83541f0c0cd80a8bf755e4 /testing
parentc80777a81cddee2e8cacf2a21242630bce9fa7d9 (diff)
parent27e021136b6e58143f95ff3df37b58ed699e8b06 (diff)
downloadUXP-844da2ccc666afa713ca1e3e7caa077de4a9250d.tar
UXP-844da2ccc666afa713ca1e3e7caa077de4a9250d.tar.gz
UXP-844da2ccc666afa713ca1e3e7caa077de4a9250d.tar.lz
UXP-844da2ccc666afa713ca1e3e7caa077de4a9250d.tar.xz
UXP-844da2ccc666afa713ca1e3e7caa077de4a9250d.zip
Merge pull request #243 from janekptacijarabaci/fetch_response_body_null_1
moebius#312: DOM - Fix incorrect TypeError: Response body is given with a null body status
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 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>