Name Date Size #Lines LOC

..--

DIR_METADATAH A D25-Apr-2025145 87

READMEH A D25-Apr-20254.1 KiB8768

check-origin.htmlH A D25-Apr-2025651 3429

check-origin_wsh.pyH A D25-Apr-2025340 145

close-code-and-reason_wsh.pyH A D25-Apr-2025713 2918

close-immediately_wsh.pyH A D25-Apr-2025282 124

close-observer_wsh.pyH A D25-Apr-20251.9 KiB7755

close-with-split-packet_wsh.pyH A D25-Apr-2025685 2613

close_observer.htmlH A D25-Apr-2025742 3124

close_wsh.pyH A D25-Apr-2025713 2917

connect_and_be_observed.htmlH A D25-Apr-2025434 2016

connect_check.htmlH A D25-Apr-20251,009 4336

connect_check_worker.jsH A D25-Apr-2025268 97

connect_to.htmlH A D25-Apr-2025869 4537

echo-request-headers_wsh.pyH A D25-Apr-2025844 2610

echo-with-no-extension_wsh.pyH A D25-Apr-2025617 2515

header-continuation_wsh.pyH A D25-Apr-20251.1 KiB2915

multiple-connections.htmlH A D25-Apr-2025921 3932

protocol-test_wsh.pyH A D25-Apr-2025602 2212

proxied_request_check.htmlH A D25-Apr-2025778 3328

send-message-every-quarter-second_wsh.pyH A D25-Apr-2025599 2512

set-hsts_wsh.pyH A D25-Apr-2025462 207

split_packet_check.htmlH A D25-Apr-2025625 3025

trailing-whitespace_wsh.pyH A D25-Apr-20251 KiB2814

truncated-headers_wsh.pyH A D25-Apr-2025594 2010

websocket_shared_worker.htmlH A D25-Apr-2025543 2523

websocket_worker_simple.jsH A D25-Apr-20251.1 KiB4738

README

1This directory contains resources used by WebSocket server for testing.
2Multiple tests may share one resource, or URI handler.
3
4- connect_check.html : A page provides simple WebSocket connectivity check.
5     This page changes page title to "PASS" to notify content::TitleWatcher.
6     Used by ProxyBrowserTest.BasicAuthWSConnect,
7     SSLUITest.TestWSSInvalidCertAndGoForward, SSLUITest.TestWSSClientCert,
8     and SSLUITestIgnoreCertErrors.TestWSS.
9
10- split_packet_check.html : A page for testing split packet handling. Here,
11     packets mean TCP segments for WebSocket, or SSL records for secure
12     WebSocket. This page changes the title to "PASS" to notify
13     content::TitleWatcher.
14     Used by WebSocketBrowserTest.WebSocketSplitSegments and
15     WebSocketBrowserTest.SecureWebSocketSplitRecords.
16
17- websocket_shared_worker.html :  A page provides simple WebSocket test in
18     shared worker. This page changes page title to "PASS" to notify
19     content::TitleWatcher.
20     Used by WorkerTest.WebSocketSharedWorker.
21
22- close_observer.html : A page that creates a WebSocket connection to
23     close-observer_wsh.py with role=observer and checks the contents of the
24     message that is returned.
25     Used by the SendCloseFrameWhenTabIsClosed browser test.
26
27- connect_and_be_observed.html : A page that creates a WebSocket connection to
28     close-observer_wsh.py with role=observed.
29     This file does NOT close the established connection.
30     Used by the SendCloseFrameWhenTabIsClosed browser test.
31
32- connect_to.html : A page which makes a connection to the WebSocket server
33     specified in the "url" parameter,
34     eg. connect_to.html?url=ws://localhost/echo Sets the title to "PASS" if
35     connection succeeds and "FAIL" otherwise.
36
37- check-origin.html : A page which checks the origin header of the WebSocket
38     opening handshake with check-origin_wsh.py. The page is expected to be
39     accessed via a file:// URL.
40
41- multiple-connections.html : Verify that HTTP connection limits are not applied
42     to WebSockets. Used by WebSocketBrowserTest.SSLConnectionLimit.
43
44- websocket_worker_simple.js : A JavaScript runs on Workers created from the
45     websocket_shared_worker.html.
46     Used by WorkerTest.WebSocketSharedWorker.
47
48- echo-with-no-extension_wsh.py : A WebSocket URL handler for echo testing.
49     This handler disables all WebSocket extension so that we can perform
50     frame data dependent tests.
51     Used by kinds of PPAPI tests for WebSocket, ExtensionApiTest.WebSocket,
52     and WorkerTest.WebSocketSharedWorker.
53
54- close-immediately_wsh.py : A WebSocket URL handler that performs an immediate
55     clean close as soon as the connection is established.
56
57- close_wsh.py : A WebSocket URL handler for testing outgoing close code and
58     reason.
59     Used by kinds of PPAPI tests for WebSocket.
60
61- close-code-and-reason_wsh.py : A WebSocket URL handler for testing server
62     initiated closing handshake. A client can ask server to close the
63     connection with arbitrary code and reason.
64     Used by kinds of PPAPI tests for WebSocket.
65
66- close-with-split-packet_wsh.py : A WebSocket URL handler for testing split
67     packet handling. Here, packets mean TCP segments for WebSocket, or SSL
68     records for secure WebSocket.
69     Used by WebSocketBrowserTest.WebSocketSplitSegments and
70     WebSocketBrowserTest.SecureWebSocketSplitRecords.
71
72- close-observer_wsh.py : enables observing the close of one WebSocket due to
73     the tab being closed from another page.
74     Used by the SendCloseFrameWhenTabIsClosed browser test.
75
76- protocol-test_wsh.py : A WebSocket URL handler for testing outgoing opening
77     handshake protocol.
78     Used by kinds of PPAPI tests for WebSocket.
79
80- check-origin_wsh.py : A WebSocket URL handler to echo back the origin header
81     used in the opening handshake.
82
83- send-message-every-quarter-second_wsh.py : A WebSocket URL handler to send
84     a caller-specified number of messages through the port, each a quarter
85     second apart. Useful when testing sustained web socket connections without
86     continued client-side interaction. Used in ExtensionWebSocketApiTests.
87