Skip to content

Commit d4c87eb

Browse files
panvarichardlau
authored andcommitted
test: scope Blob WPT failures to big-endian
The typed array Blob constructor tests expect little-endian byte order. Mark them as expected failures only on big-endian platforms, so failures on little-endian platforms remain visible. Signed-off-by: Filip Skokan <[email protected]> Assisted-by: Claude, Codex PR-URL: #66322 Reviewed-By: Daeyeon Jeong <[email protected]>
1 parent 1a33e91 commit d4c87eb

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

‎test/wpt/status/FileAPI/blob.cjs‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ module.exports = {
2323
'Blob-constructor-dom.window.js': {
2424
skip: 'Depends on DOM API',
2525
},
26-
'Blob-constructor.any.js': {
27-
fail: {
28-
flaky: [
29-
'Passing typed arrays as elements of the blobParts array should work.',
30-
'Passing a Float16Array as element of the blobParts array should work.',
31-
'Passing a Float64Array as element of the blobParts array should work.',
32-
'Passing BigInt typed arrays as elements of the blobParts array should work.',
33-
],
26+
...(os.endianness() === 'BE' ? {
27+
'Blob-constructor.any.js': {
28+
fail: {
29+
note: 'The expected bytes assume a little-endian platform',
30+
expected: [
31+
'Passing typed arrays as elements of the blobParts array should work.',
32+
'Passing a Float16Array as element of the blobParts array should work.',
33+
'Passing a Float64Array as element of the blobParts array should work.',
34+
'Passing BigInt typed arrays as elements of the blobParts array should work.',
35+
],
36+
},
3437
},
35-
},
38+
} : {}),
3639
};

0 commit comments

Comments
 (0)