• Home
Name Date Size #Lines LOC

..--

OWNERSD03-May-202460 43

READMED03-May-20243.3 KiB7358

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

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

close_wsh.pyD03-May-2024721 2716

connect_check.htmlD03-May-2024553 2723

connect_to.htmlD03-May-2024657 3529

count-connection_wsh.pyD03-May-2024717 2715

count_connection.htmlD03-May-2024473 2318

counted_connection.htmlD03-May-2024407 2017

echo-with-no-extension_wsh.pyD03-May-2024625 2314

multiple-connections.htmlD03-May-2024904 3127

protocol-test_wsh.pyD03-May-2024602 2212

split_packet_check.htmlD03-May-2024625 3025

websocket_shared_worker.htmlD03-May-2024543 2523

websocket_worker_simple.jsD03-May-20241.2 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- connect_to.html : A page which makes a connection to the WebSocket server
23     specified in the "url" parameter,
24     eg. connect_to.html?url=ws://localhost/echo Sets the title to "PASS" if
25     connection succeeds and "FAIL" otherwise.
26
27- counted_connection.html : A page that creates a WebSocket connection
28     to count-connection_wsh.
29     This file does NOT close the established connection.
30     Used by SendCloseFrameWhenTabIsClosed.
31
32- count_connection.html : A page that creates a WebSocket connection
33     to count-connection_wsh and checks the number of open and closed
34     websocket connections to the handler.
35     Used by SendCloseFrameWhenTabIsClosed.
36
37- multiple-connections.html : Verify that HTTP connection limits are not applied
38     to WebSockets. Used by WebSocketBrowserTest.SSLConnectionLimit.
39
40- websocket_worker_simple.js : A JavaScript runs on Workers created from the
41     websocket_shared_worker.html.
42     Used by WorkerTest.WebSocketSharedWorker.
43
44- echo-with-no-extension_wsh.py : A WebSocket URL handler for echo testing.
45     This handler disables all WebSocket extension so that we can perform
46     frame data dependent tests.
47     Used by kinds of PPAPI tests for WebSocket, ExtensionApiTest.WebSocket,
48     and WorkerTest.WebSocketSharedWorker.
49
50- close_wsh.py : A WebSocket URL handler for testing outgoing close code and
51     reason.
52     Used by kinds of PPAPI tests for WebSocket.
53
54- close-code-and-reason_wsh.py : A WebSocket URL handler for testing server
55     initiated closing handshake. A client can ask server to close the
56     connection with arbitrary code and reason.
57     Used by kinds of PPAPI tests for WebSocket.
58
59- close-with-split-packet_wsh.py : A WebSocket URL handler for testing split
60     packet handling. Here, packets mean TCP segments for WebSocket, or SSL
61     records for secure WebSocket.
62     Used by WebSocketBrowserTest.WebSocketSplitSegments and
63     WebSocketBrowserTest.SecureWebSocketSplitRecords.
64
65- count-connection_wsh.py : counts the number of open and closed websocket
66     connections to this handler.
67     It sends the numbers after each connection establishment.
68     Used by SendCloseFrameWhenTabIsClosed.
69
70- protocol-test_wsh.py : A WebSocket URL handler for testing outgoing opening
71     handshake protocol.
72     Used by kinds of PPAPI tests for WebSocket.
73