Skip to content

Commit

Permalink
mark websocket WPTs as failing
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Dec 1, 2023
1 parent b5dcb40 commit a4c9af3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/websocket/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ function onSocketClose () {
// attribute initialized to the result of applying UTF-8
// decode without BOM to the WebSocket connection close
// reason.
// TODO: process.nextTick
fireEvent('close', ws, CloseEvent, {
wasClean, code, reason
})
Expand Down
1 change: 1 addition & 0 deletions lib/websocket/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function failWebsocketConnection (ws, reason) {
}

if (reason) {
// TODO: process.nextTick
fireEvent('error', ws, ErrorEvent, {
error: new Error(reason)
})
Expand Down
12 changes: 12 additions & 0 deletions test/wpt/status/websockets.status.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
"skip": true
}
},
"interfaces": {
"WebSocket": {
"close": {
"close-connecting-async.any.js": {
"note": "TODO - need to add route for handshake delay",
"fail": [
"close event should be fired asynchronously when WebSocket is connecting"
]
}
}
}
},
"Create-blocked-port.any.js": {
"note": "TODO(@KhafraDev): investigate failure",
"fail": [
Expand Down

0 comments on commit a4c9af3

Please sign in to comment.