summaryrefslogtreecommitdiff
path: root/LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt
blob: bf24ac2b7b2666fc1005224358da8f9e6dec12e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CONSOLE MESSAGE: line 0: WebSocket is closed before the connection is established.
Test CloseEvent code and reason property.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".

ws.onclose() was called.
PASS closeEvent.wasClean is false
PASS closeEvent.code is codeAbnormalClosure
PASS closeEvent.reason is emptyString
WebSocketTest.onopen() was called with testId = 0.
WebSocketTest.onclose() was called with testId = 0.
PASS closeEvent.wasClean is true
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
WebSocketTest.onopen() was called with testId = 1.
WebSocketTest.onclose() was called with testId = 1.
PASS closeEvent.wasClean is true
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
WebSocketTest.onopen() was called with testId = 2.
WebSocketTest.onclose() was called with testId = 2.
PASS closeEvent.wasClean is true
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
PASS closeEvent.code is expectedCode[testId]
PASS closeEvent.reason is expectedReason[testId]
PASS successfullyParsed is true

TEST COMPLETE