summaryrefslogtreecommitdiff
path: root/LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt')
-rw-r--r--LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt b/LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt
new file mode 100644
index 0000000..bf24ac2
--- /dev/null
+++ b/LayoutTests/http/tests/websocket/tests/hybi/close-code-and-reason-expected.txt
@@ -0,0 +1,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
+