summaryrefslogtreecommitdiff
path: root/cli/js/40_testing.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-04-25 13:53:06 +0200
committerGitHub <noreply@github.com>2023-04-25 13:53:06 +0200
commit531754c35497568aa2f19179344eb9e205c9a4b3 (patch)
treebd8f843ff60cc311083f1a9851b51c7d271dea59 /cli/js/40_testing.js
parent21c888d4dbe2175333cc9d58b227661e2d0185d8 (diff)
refactor(ext/websocket): use specialized ops (#18819)
Instead of relying on `op_ws_send` to send different kinds of messages, use specialized ops everywhere.
Diffstat (limited to 'cli/js/40_testing.js')
-rw-r--r--cli/js/40_testing.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/js/40_testing.js b/cli/js/40_testing.js
index a0dcaf499..146448356 100644
--- a/cli/js/40_testing.js
+++ b/cli/js/40_testing.js
@@ -128,7 +128,10 @@ const OP_DETAILS = {
"op_ws_close": ["close a WebSocket", "awaiting until the `close` event is emitted on a `WebSocket`, or the `WebSocketStream#closed` promise resolves"],
"op_ws_create": ["create a WebSocket", "awaiting until the `open` event is emitted on a `WebSocket`, or the result of a `WebSocketStream#connection` promise"],
"op_ws_next_event": ["receive the next message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
- "op_ws_send": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
+ "op_ws_send_text": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
+ "op_ws_send_binary": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
+ "op_ws_send_ping": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
+ "op_ws_send_pong": ["send a message on a WebSocket", "closing a `WebSocket` or `WebSocketStream`"],
};
// Wrap test function in additional assertion that makes sure