diff --git a/test/wpt/status/hr-time.cjs b/test/wpt/status/hr-time.cjs new file mode 100644 index 00000000000000..c426eeeb8e9274 --- /dev/null +++ b/test/wpt/status/hr-time.cjs @@ -0,0 +1,37 @@ +'use strict'; + +const os = require('node:os'); + +const isMacOS15X64 = + os.platform() === 'darwin' && + process.arch === 'x64' && + os.release().startsWith('24.'); + +module.exports = { + ...(isMacOS15X64 ? { + 'basic.any.js': { + fail: { + note: 'Flaky on macos15-x64: Date.now() can shift relative to monotonic performance.now()', + flaky: [ + 'High resolution time has approximately the right relative magnitude', + ], + }, + }, + } : {}), + + 'idlharness.any.js': { + fail: { + expected: [ + 'Window interface: attribute performance', + ], + }, + }, + + 'idlharness-shadowrealm.window.js': { + skip: 'ShadowRealm support is not enabled', + }, + + 'window-worker-timeOrigin.window.js': { + skip: 'depends on URL.createObjectURL(blob)', + }, +}; diff --git a/test/wpt/status/hr-time.json b/test/wpt/status/hr-time.json deleted file mode 100644 index b787bcb7862cb6..00000000000000 --- a/test/wpt/status/hr-time.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "idlharness.any.js": { - "fail": { - "expected": [ - "Window interface: attribute performance" - ] - } - }, - "idlharness-shadowrealm.window.js": { - "skip": "ShadowRealm support is not enabled" - }, - "window-worker-timeOrigin.window.js": { - "skip": "depends on URL.createObjectURL(blob)" - } -}