Skip to content

Commit 1db44b9

Browse files
legendecasUlisesGascon
authored andcommitted
test: recognize wpt completion error
PR-URL: #50429 Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent ecfc951 commit 1db44b9

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

test/common/wpt.js

+10
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,16 @@ class WPTRunner {
838838
this.fail(spec, { name: 'WPT testharness timeout' }, kTimeout);
839839
// Mark the whole test as TIMEOUT in wpt.fyi report.
840840
reportResult?.finish('TIMEOUT');
841+
} else if (status !== kPass) {
842+
// No need to record this synthetic failure with wpt.fyi.
843+
this.fail(spec, {
844+
status: status,
845+
name: 'WPT test harness error',
846+
message: harnessStatus.message,
847+
stack: harnessStatus.stack,
848+
}, status);
849+
// Mark the whole test as ERROR in wpt.fyi report.
850+
reportResult?.finish('ERROR');
841851
} else {
842852
reportResult?.finish();
843853
}

test/wpt/status/console.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"console namespace: operation dir(optional any, optional object?)"
88
]
99
}
10+
},
11+
"idlharness-shadowrealm.window.js": {
12+
"skip": "ShadowRealm support is not enabled"
1013
}
1114
}

test/wpt/status/encoding.json

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"idlharness.any.js": {
4040
"skip": "No implementation of TextDecoderStream and TextEncoderStream"
4141
},
42+
"idlharness-shadowrealm.window.js": {
43+
"skip": "ShadowRealm support is not enabled"
44+
},
4245
"replacement-encodings.any.js": {
4346
"skip": "decoding-helpers.js needs XMLHttpRequest"
4447
},

test/wpt/status/hr-time.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
]
77
}
88
},
9+
"idlharness-shadowrealm.window.js": {
10+
"skip": "ShadowRealm support is not enabled"
11+
},
912
"window-worker-timeOrigin.window.js": {
1013
"skip": "depends on URL.createObjectURL(blob)"
1114
}

test/wpt/status/streams.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
]
77
}
88
},
9+
"idlharness-shadowrealm.window.js": {
10+
"skip": "ShadowRealm support is not enabled"
11+
},
912
"piping/general-addition.any.js": {
1013
"fail": {
1114
"expected": [

test/wpt/status/url.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"idlharness-shadowrealm.window.js": {
3+
"skip": "ShadowRealm support is not enabled"
4+
},
25
"percent-encoding.window.js": {
36
"skip": "TODO: port from .window.js"
47
},

test/wpt/status/user-timing.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"idlharness-shadowrealm.window.js": {
3+
"skip": "ShadowRealm support is not enabled"
4+
},
25
"invoke_with_timing_attributes.worker.js": {
36
"skip": "importScripts not supported"
47
},

0 commit comments

Comments
 (0)