Skip to content

Commit 5356116

Browse files
Guy BedfordJakeChampion
authored andcommitted
wpt tests
1 parent cfc0635 commit 5356116

File tree

7 files changed

+464
-0
lines changed

7 files changed

+464
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"ReadableStream with byte source: read()ing from a closed stream still transfers the buffer": {
3+
"status": "FAIL"
4+
},
5+
"ReadableStream with byte source: read()ing from a stream with queued chunks still transfers the buffer": {
6+
"status": "FAIL"
7+
},
8+
"ReadableStream with byte source: enqueuing an already-detached buffer throws": {
9+
"status": "PASS"
10+
},
11+
"ReadableStream with byte source: enqueuing a zero-length buffer throws": {
12+
"status": "FAIL"
13+
},
14+
"ReadableStream with byte source: enqueuing a zero-length view on a non-zero-length buffer throws": {
15+
"status": "FAIL"
16+
},
17+
"ReadableStream with byte source: reading into an already-detached buffer rejects": {
18+
"status": "PASS"
19+
},
20+
"ReadableStream with byte source: reading into a zero-length buffer rejects": {
21+
"status": "PASS"
22+
},
23+
"ReadableStream with byte source: reading into a zero-length view on a non-zero-length buffer rejects": {
24+
"status": "PASS"
25+
},
26+
"ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the readable state)": {
27+
"status": "FAIL"
28+
},
29+
"ReadableStream with byte source: respond() throws if the BYOB request's buffer has been detached (in the closed state)": {
30+
"status": "FAIL"
31+
},
32+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the readable state)": {
33+
"status": "FAIL"
34+
},
35+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer is zero-length (in the readable state)": {
36+
"status": "FAIL"
37+
},
38+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view is zero-length on a non-zero-length buffer (in the readable state)": {
39+
"status": "FAIL"
40+
},
41+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view has a different offset (in the readable state)": {
42+
"status": "FAIL"
43+
},
44+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view has a different offset (in the closed state)": {
45+
"status": "FAIL"
46+
},
47+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (in the readable state)": {
48+
"status": "FAIL"
49+
},
50+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (autoAllocateChunkSize)": {
51+
"status": "FAIL"
52+
},
53+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view has a larger length (in the readable state)": {
54+
"status": "FAIL"
55+
},
56+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has been detached (in the closed state)": {
57+
"status": "FAIL"
58+
},
59+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer is zero-length (in the closed state)": {
60+
"status": "FAIL"
61+
},
62+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view is non-zero-length (in the closed state)": {
63+
"status": "FAIL"
64+
},
65+
"ReadableStream with byte source: respondWithNewView() throws if the supplied view's buffer has a different length (in the closed state)": {
66+
"status": "FAIL"
67+
},
68+
"ReadableStream with byte source: enqueue() throws if the BYOB request's buffer has been detached (in the readable state)": {
69+
"status": "PASS"
70+
},
71+
"ReadableStream with byte source: enqueue() throws if the BYOB request's buffer has been detached (in the closed state)": {
72+
"status": "PASS"
73+
}
74+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"enqueue after detaching byobRequest.view.buffer should throw": {
3+
"status": "FAIL"
4+
}
5+
}
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
{
2+
"getReader({mode: \"byob\"}) throws on non-bytes streams": {
3+
"status": "PASS"
4+
},
5+
"ReadableStream with byte source can be constructed with no errors": {
6+
"status": "PASS"
7+
},
8+
"getReader({mode}) must perform ToString()": {
9+
"status": "PASS"
10+
},
11+
"ReadableStream with byte source: Construct and expect start and pull being called": {
12+
"status": "PASS"
13+
},
14+
"ReadableStream with byte source: No automatic pull call if start doesn't finish": {
15+
"status": "PASS"
16+
},
17+
"ReadableStream with byte source: start() throws an exception": {
18+
"status": "PASS"
19+
},
20+
"ReadableStream with byte source: Construct with highWaterMark of 0": {
21+
"status": "PASS"
22+
},
23+
"ReadableStream with byte source: desiredSize when closed": {
24+
"status": "PASS"
25+
},
26+
"ReadableStream with byte source: desiredSize when errored": {
27+
"status": "PASS"
28+
},
29+
"ReadableStream with byte source: getReader(), then releaseLock()": {
30+
"status": "PASS"
31+
},
32+
"ReadableStream with byte source: getReader() with mode set to byob, then releaseLock()": {
33+
"status": "PASS"
34+
},
35+
"ReadableStream with byte source: Test that closing a stream does not release a reader automatically": {
36+
"status": "PASS"
37+
},
38+
"ReadableStream with byte source: Test that closing a stream does not release a BYOB reader automatically": {
39+
"status": "PASS"
40+
},
41+
"ReadableStream with byte source: Test that erroring a stream does not release a reader automatically": {
42+
"status": "PASS"
43+
},
44+
"ReadableStream with byte source: Test that erroring a stream does not release a BYOB reader automatically": {
45+
"status": "PASS"
46+
},
47+
"ReadableStream with byte source: releaseLock() on ReadableStreamDefaultReader must reject pending read()": {
48+
"status": "FAIL"
49+
},
50+
"ReadableStream with byte source: releaseLock() on ReadableStreamBYOBReader must reject pending read()": {
51+
"status": "FAIL"
52+
},
53+
"ReadableStream with byte source: Automatic pull() after start()": {
54+
"status": "PASS"
55+
},
56+
"ReadableStream with byte source: Automatic pull() after start() and read()": {
57+
"status": "PASS"
58+
},
59+
"ReadableStream with byte source: autoAllocateChunkSize": {
60+
"status": "PASS"
61+
},
62+
"ReadableStream with byte source: Mix of auto allocate and BYOB": {
63+
"status": "FAIL"
64+
},
65+
"ReadableStream with byte source: Automatic pull() after start() and read(view)": {
66+
"status": "PASS"
67+
},
68+
"ReadableStream with byte source: enqueue(), getReader(), then read()": {
69+
"status": "PASS"
70+
},
71+
"ReadableStream with byte source: Push source that doesn't understand pull signal": {
72+
"status": "PASS"
73+
},
74+
"ReadableStream with byte source: pull() function is not callable": {
75+
"status": "PASS"
76+
},
77+
"ReadableStream with byte source: enqueue() with Uint16Array, getReader(), then read()": {
78+
"status": "PASS"
79+
},
80+
"ReadableStream with byte source: enqueue(), read(view) partially, then read()": {
81+
"status": "FAIL"
82+
},
83+
"ReadableStream with byte source: getReader(), enqueue(), close(), then read()": {
84+
"status": "PASS"
85+
},
86+
"ReadableStream with byte source: enqueue(), close(), getReader(), then read()": {
87+
"status": "PASS"
88+
},
89+
"ReadableStream with byte source: Respond to pull() by enqueue()": {
90+
"status": "FAIL"
91+
},
92+
"ReadableStream with byte source: Respond to pull() by enqueue() asynchronously": {
93+
"status": "FAIL"
94+
},
95+
"ReadableStream with byte source: Respond to multiple pull() by separate enqueue()": {
96+
"status": "FAIL"
97+
},
98+
"ReadableStream with byte source: read(view), then respond()": {
99+
"status": "FAIL"
100+
},
101+
"ReadableStream with byte source: read(view), then respond() with too big value": {
102+
"status": "PASS"
103+
},
104+
"ReadableStream with byte source: respond(3) to read(view) with 2 element Uint16Array enqueues the 1 byte remainder": {
105+
"status": "PASS"
106+
},
107+
"ReadableStream with byte source: enqueue(), getReader(), then read(view)": {
108+
"status": "PASS"
109+
},
110+
"ReadableStream with byte source: enqueue(), getReader(), then cancel() (mode = not BYOB)": {
111+
"status": "PASS"
112+
},
113+
"ReadableStream with byte source: enqueue(), getReader(), then cancel() (mode = BYOB)": {
114+
"status": "PASS"
115+
},
116+
"ReadableStream with byte source: enqueue(), getReader(), then read(view) where view.buffer is not fully covered by view": {
117+
"status": "FAIL"
118+
},
119+
"ReadableStream with byte source: Multiple enqueue(), getReader(), then read(view)": {
120+
"status": "PASS"
121+
},
122+
"ReadableStream with byte source: enqueue(), getReader(), then read(view) with a bigger view": {
123+
"status": "PASS"
124+
},
125+
"ReadableStream with byte source: enqueue(), getReader(), then read(view) with smaller views": {
126+
"status": "PASS"
127+
},
128+
"ReadableStream with byte source: enqueue() 1 byte, getReader(), then read(view) with Uint16Array": {
129+
"status": "PASS"
130+
},
131+
"ReadableStream with byte source: enqueue() 3 byte, getReader(), then read(view) with 2-element Uint16Array": {
132+
"status": "PASS"
133+
},
134+
"ReadableStream with byte source: read(view) with Uint16Array on close()-d stream with 1 byte enqueue()-d must fail": {
135+
"status": "PASS"
136+
},
137+
"ReadableStream with byte source: A stream must be errored if close()-d before fulfilling read(view) with Uint16Array": {
138+
"status": "PASS"
139+
},
140+
"ReadableStream with byte source: Throw if close()-ed more than once": {
141+
"status": "PASS"
142+
},
143+
"ReadableStream with byte source: Throw on enqueue() after close()": {
144+
"status": "PASS"
145+
},
146+
"ReadableStream with byte source: read(view), then respond() and close() in pull()": {
147+
"status": "PASS"
148+
},
149+
"ReadableStream with byte source: read(view) with Uint32Array, then fill it by multiple respond() calls": {
150+
"status": "PASS"
151+
},
152+
"ReadableStream with byte source: read(view) with Uint32Array, then fill it by multiple enqueue() calls": {
153+
"status": "PASS"
154+
},
155+
"ReadableStream with byte source: read() twice, then enqueue() twice": {
156+
"status": "FAIL"
157+
},
158+
"ReadableStream with byte source: Multiple read(view), big enqueue()": {
159+
"status": "PASS"
160+
},
161+
"ReadableStream with byte source: Multiple read(view) and multiple enqueue()": {
162+
"status": "PASS"
163+
},
164+
"ReadableStream with byte source: read(view) with passing undefined as view must fail": {
165+
"status": "PASS"
166+
},
167+
"ReadableStream with byte source: read(view) with passing an empty object as view must fail": {
168+
"status": "PASS"
169+
},
170+
"ReadableStream with byte source: Even read(view) with passing ArrayBufferView like object as view must fail": {
171+
"status": "PASS"
172+
},
173+
"ReadableStream with byte source: read() on an errored stream": {
174+
"status": "PASS"
175+
},
176+
"ReadableStream with byte source: read(), then error()": {
177+
"status": "PASS"
178+
},
179+
"ReadableStream with byte source: read(view) on an errored stream": {
180+
"status": "PASS"
181+
},
182+
"ReadableStream with byte source: read(view), then error()": {
183+
"status": "PASS"
184+
},
185+
"ReadableStream with byte source: Throwing in pull function must error the stream": {
186+
"status": "FAIL"
187+
},
188+
"ReadableStream with byte source: Throwing in pull in response to read() must be ignored if the stream is errored in it": {
189+
"status": "FAIL"
190+
},
191+
"ReadableStream with byte source: Throwing in pull in response to read(view) function must error the stream": {
192+
"status": "PASS"
193+
},
194+
"ReadableStream with byte source: Throwing in pull in response to read(view) must be ignored if the stream is errored in it": {
195+
"status": "PASS"
196+
},
197+
"calling respond() twice on the same byobRequest should throw": {
198+
"status": "PASS"
199+
},
200+
"pull() resolving should not resolve read()": {
201+
"status": "FAIL"
202+
},
203+
"ReadableStream with byte source: default reader + autoAllocateChunkSize + byobRequest interaction": {
204+
"status": "PASS"
205+
},
206+
"ReadableStream with byte source: autoAllocateChunkSize cannot be 0": {
207+
"status": "PASS"
208+
},
209+
"ReadableStreamBYOBReader can be constructed directly": {
210+
"status": "PASS"
211+
},
212+
"ReadableStreamBYOBReader constructor requires a ReadableStream argument": {
213+
"status": "PASS"
214+
},
215+
"ReadableStreamBYOBReader constructor requires an unlocked ReadableStream": {
216+
"status": "PASS"
217+
},
218+
"ReadableStreamBYOBReader constructor requires a ReadableStream with type \"bytes\"": {
219+
"status": "PASS"
220+
},
221+
"ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader, respond()": {
222+
"status": "FAIL"
223+
},
224+
"ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader with 1 element Uint16Array, respond(1)": {
225+
"status": "FAIL"
226+
},
227+
"ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader with 2 element Uint8Array, respond(3)": {
228+
"status": "FAIL"
229+
},
230+
"ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader, enqueue()": {
231+
"status": "FAIL"
232+
},
233+
"ReadableStream with byte source: releaseLock() with pending read(view), read(view) on second reader, close(), respond(0)": {
234+
"status": "FAIL"
235+
},
236+
"ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read() on second reader, respond()": {
237+
"status": "FAIL"
238+
},
239+
"ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read() on second reader, enqueue()": {
240+
"status": "FAIL"
241+
},
242+
"ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read(view) on second reader, respond()": {
243+
"status": "FAIL"
244+
},
245+
"ReadableStream with byte source: autoAllocateChunkSize, releaseLock() with pending read(), read(view) on second reader, enqueue()": {
246+
"status": "FAIL"
247+
},
248+
"ReadableStream with byte source: read(view) with 1 element Uint16Array, respond(1), releaseLock(), read(view) on second reader with 1 element Uint16Array, respond(1)": {
249+
"status": "FAIL"
250+
},
251+
"ReadableStream with byte source: read(view) with 1 element Uint16Array, respond(1), releaseLock(), read() on second reader, enqueue()": {
252+
"status": "FAIL"
253+
}
254+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"byobRequest.respond() after enqueue() should not crash": {
3+
"status": "PASS"
4+
},
5+
"byobRequest.respond() with cached byobRequest after enqueue() should not crash": {
6+
"status": "PASS"
7+
},
8+
"byobRequest.respond() after enqueue() with double read should not crash": {
9+
"status": "PASS"
10+
}
11+
}

0 commit comments

Comments
 (0)