moebius#312: DOM - Fix incorrect TypeError: Response body is given with a null body status

https://github.com/MoonchildProductions/moebius/issues/312
This commit is contained in:
janekptacijarabaci 2018-04-24 11:47:08 +02:00 committed by Roy Tam
commit 41ad5496ae
4 changed files with 11 additions and 6 deletions

View file

@ -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>