Commit 3f2450f630d for nodejs
commit 3f2450f630d82c7358ee2f08e2e36f3963fa8079
Author: Filip Skokan <panva.ip@gmail.com>
Date: Sat Sep 26 13:15:24 2026 +0200
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 <panva.ip@gmail.com>
Assisted-by: Claude, Codex
PR-URL: https://github.com/nodejs/node/pull/66322
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
diff --git a/test/wpt/status/FileAPI/blob.cjs b/test/wpt/status/FileAPI/blob.cjs
index 6f8599dc8b4..c59516ca1dc 100644
--- a/test/wpt/status/FileAPI/blob.cjs
+++ b/test/wpt/status/FileAPI/blob.cjs
@@ -23,14 +23,17 @@ module.exports = {
'Blob-constructor-dom.window.js': {
skip: 'Depends on DOM API',
},
- 'Blob-constructor.any.js': {
- fail: {
- flaky: [
- 'Passing typed arrays as elements of the blobParts array should work.',
- 'Passing a Float16Array as element of the blobParts array should work.',
- 'Passing a Float64Array as element of the blobParts array should work.',
- 'Passing BigInt typed arrays as elements of the blobParts array should work.',
- ],
+ ...(os.endianness() === 'BE' ? {
+ 'Blob-constructor.any.js': {
+ fail: {
+ note: 'The expected bytes assume a little-endian platform',
+ expected: [
+ 'Passing typed arrays as elements of the blobParts array should work.',
+ 'Passing a Float16Array as element of the blobParts array should work.',
+ 'Passing a Float64Array as element of the blobParts array should work.',
+ 'Passing BigInt typed arrays as elements of the blobParts array should work.',
+ ],
+ },
},
- },
+ } : {}),
};