mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: recognize wpt completion error
PR-URL: https://github.com/nodejs/node/pull/50429 Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
committed by
Node.js GitHub Bot
parent
075ae82946
commit
a00f0b1f0a
@@ -838,6 +838,16 @@ class WPTRunner {
|
||||
this.fail(spec, { name: 'WPT testharness timeout' }, kTimeout);
|
||||
// Mark the whole test as TIMEOUT in wpt.fyi report.
|
||||
reportResult?.finish('TIMEOUT');
|
||||
} else if (status !== kPass) {
|
||||
// No need to record this synthetic failure with wpt.fyi.
|
||||
this.fail(spec, {
|
||||
status: status,
|
||||
name: 'WPT test harness error',
|
||||
message: harnessStatus.message,
|
||||
stack: harnessStatus.stack,
|
||||
}, status);
|
||||
// Mark the whole test as ERROR in wpt.fyi report.
|
||||
reportResult?.finish('ERROR');
|
||||
} else {
|
||||
reportResult?.finish();
|
||||
}
|
||||
|
||||
@@ -7,5 +7,8 @@
|
||||
"console namespace: operation dir(optional any, optional object?)"
|
||||
]
|
||||
}
|
||||
},
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,9 @@
|
||||
"idlharness.any.js": {
|
||||
"skip": "No implementation of TextDecoderStream and TextEncoderStream"
|
||||
},
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"replacement-encodings.any.js": {
|
||||
"skip": "decoding-helpers.js needs XMLHttpRequest"
|
||||
},
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"window-worker-timeOrigin.window.js": {
|
||||
"skip": "depends on URL.createObjectURL(blob)"
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"piping/general-addition.any.js": {
|
||||
"fail": {
|
||||
"expected": [
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"percent-encoding.window.js": {
|
||||
"skip": "TODO: port from .window.js"
|
||||
},
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"idlharness-shadowrealm.window.js": {
|
||||
"skip": "ShadowRealm support is not enabled"
|
||||
},
|
||||
"invoke_with_timing_attributes.worker.js": {
|
||||
"skip": "importScripts not supported"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user