• Home
Name Date Size #Lines LOC

..--

DIR_METADATAD03-May-2024454 1211

READMED03-May-20243.7 KiB8164

check-origin.htmlD03-May-2024651 3429

check-origin_wsh.pyD03-May-2024340 145

close-code-and-reason_wsh.pyD03-May-2024713 2918

close-immediately_wsh.pyD03-May-2024282 124

close-observer_wsh.pyD03-May-20241.9 KiB7755

close-with-split-packet_wsh.pyD03-May-2024685 2613

close_observer.htmlD03-May-2024742 3124

close_wsh.pyD03-May-2024713 2917

connect_and_be_observed.htmlD03-May-2024434 2016

connect_check.htmlD03-May-20241,009 4336

connect_check_worker.jsD03-May-2024268 97

connect_to.htmlD03-May-2024820 4637

echo-request-headers_wsh.pyD03-May-2024844 2610

echo-with-no-extension_wsh.pyD03-May-2024617 2515

header-continuation_wsh.pyD03-May-20241.1 KiB2915

multiple-connections.htmlD03-May-2024921 3932

protocol-test_wsh.pyD03-May-2024602 2212

proxied_request_check.htmlD03-May-2024778 3328

set-hsts_wsh.pyD03-May-2024462 207

split_packet_check.htmlD03-May-2024625 3025

trailing-whitespace_wsh.pyD03-May-20241 KiB2814

truncated-headers_wsh.pyD03-May-2024594 2010

websocket_shared_worker.htmlD03-May-2024543 2523

websocket_worker_simple.jsD03-May-20241.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.