blob: fc07412263bda74f2beb42834f22a898e802a740 [file] [log] [blame]
<!DOCTYPE html>
<meta charset=utf-8>
<title>cobalt-special - xhr content length</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/common/utils.js></script>
<script src=resources/support.js?pipe=sub></script>
<div id=log></div>
var test = async_test();
test.step(function() {
var client = new XMLHttpRequest();
client.onloadstart = test.step_func(function() {
// The purpose of this test is to verify that Cobalt does not crash when an
// erroneously long content length is specified in xhr response.
const too_large_buffer_size = "4987398465139";"GET", "resources/" + too_large_buffer_size);