Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: LayoutTests/http/tests/websocket/pong-only_wsh.py

Issue 788923007: Layout test to verify pong message from the server. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/pong-only_wsh.py
diff --git a/LayoutTests/http/tests/websocket/pong-only_wsh.py b/LayoutTests/http/tests/websocket/pong-only_wsh.py
new file mode 100644
index 0000000000000000000000000000000000000000..7399104a3f81a01074ce246ca9c7e49e821b8d7c
--- /dev/null
+++ b/LayoutTests/http/tests/websocket/pong-only_wsh.py
@@ -0,0 +1,11 @@
+import cgi
tyoshino (SeeGerritForStatus) 2015/01/05 05:19:45 needed?
Adam Rice 2015/01/05 20:24:32 Removed.
+
+
+def web_socket_do_extra_handshake(request):
+ pass
+
+
+def web_socket_transfer_data(request):
+ request.ws_stream._send_pong("{payload: 'yes'}")
+ request.ws_stream.send_message("sent pong")
+ line = request.ws_stream.receive_message()

Powered by Google App Engine
This is Rietveld 408576698