README 3.7 KB

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