chromium/third_party/blink/web_tests/external/wpt/fetch/content-length/too-long.window.js

promise_test(async t => {
  const result = await fetch(`resources/content-length.py?length=${encodeURIComponent("Content-Length: 50")}`);
  await promise_rejects_js(t, TypeError, result.text());
}, "Content-Length header value of network response exceeds response body");