<!doctype html> | |
<html> | |
<script src="/resources/testharness.js"></script> | |
<script src="/resources/testharnessreport.js"></script> | |
<script> | |
promise_test((t) => { | |
const method = 'X'; | |
const keepalive = true; | |
return promise_rejects(t, TypeError(), fetch('/', {method, keepalive}), | |
'keepalive with non-simple request'); | |
}, 'keepalive: we do not support non-simple requests at this time'); | |
</script> | |
</html> |