request-init-stream.any.html

FAILExpected16 of 23 subtests pass880 ms

Details

Test
/fetch/api/request/request-init-stream.any.html
Harness
OK

Subtests

StatusSubtestMessage
PASSConstructing a Request with a stream holds the original object.
FAILConstructing a Request with a stream on which getReader() is called
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
PASSConstructing a Request with a stream on which read() is called
PASSConstructing a Request with a stream on which read() and releaseLock() are called
PASSConstructing a Request with a Request on which body.getReader() is called
PASSConstructing a Request with a Request on which body.getReader().read() is called
PASSConstructing a Request with a Request on which read() and releaseLock() are called
PASSIt is OK to omit .duplex when the body is null.
PASSIt is OK to omit .duplex when the body is a string.
PASSIt is OK to omit .duplex when the body is a Uint8Array.
PASSIt is OK to omit .duplex when the body is a Blob.
FAILIt is error to omit .duplex when the body is a ReadableStream.
assert_throws_js: function "() => new Request("...", { method, body })" did not throw
assert_throws_js: function "() => new Request("...", { method, body })" did not throw
PASSIt is OK to set .duplex = 'half' when the body is null.
PASSIt is OK to set .duplex = 'half' when the body is a string.
PASSIt is OK to set .duplex = 'half' when the body is a Uint8Array.
PASSIt is OK to set .duplex = 'half' when the body is a Blob.
PASSIt is OK to set .duplex = 'half' when the body is a ReadableStream.
FAILIt is error to set .duplex = 'full' when the body is null.
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
FAILIt is error to set .duplex = 'full' when the body is a string.
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
FAILIt is error to set .duplex = 'full' when the body is a Uint8Array.
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
FAILIt is error to set .duplex = 'full' when the body is a Blob.
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
FAILIt is error to set .duplex = 'full' when the body is a ReadableStream.
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
assert_throws_js: function "() => new Request("...", { method, body, duplex })" did not throw
PASSIt is OK to omit duplex when init.body is not given and input.body is given.