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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py

Issue 23201008: Active WebSocket should send closing handshake to server on page navigation or page close (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing! Created 7 years, 4 months 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
« no previous file with comments | « no previous file | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py b/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py
index 4c13115b2439bfb76d31286adce9ec65e1046292..23acea7789c6051411a14948360097f45132f346 100644
--- a/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py
+++ b/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload_wsh.py
@@ -48,7 +48,7 @@ def web_socket_transfer_data(request):
# notify to client that socketName is received by server.
msgutil.send_message(request, socketName)
msgutil.receive_message(request) # wait, and exception by close.
- socketName = socketName + ': receive next message'
+ socketName = socketName + ': ' + request.ws_close_code
finally:
# request is closed. notify this socketName to other web sockets.
del connections[request]
« no previous file with comments | « no previous file | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698