Changeset 87719 in webkit
- Timestamp:
- May 31, 2011 3:20:05 AM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87717 r87719 1 2011-05-31 Yuta Kitamura <yutak@chromium.org> 2 3 Reviewed by Kent Tamura. 4 5 WebSocket: Make the output of client-close.html more verbose 6 https://bugs.webkit.org/show_bug.cgi?id=61770 7 8 * http/tests/websocket/tests/client-close-expected.txt: 9 * http/tests/websocket/tests/client-close.html: 10 * http/tests/websocket/tests/client-close_wsh.py: 11 Echo back the first two bytes received from the client. 12 1 13 2011-05-31 Zoltan Horvath <zoltan@webkit.org> 2 14 -
trunk/LayoutTests/http/tests/websocket/tests/client-close-expected.txt
r87674 r87719 4 4 5 5 Connected 6 Received: close_frame='\xff\x00' 6 7 Closed 8 PASS receivedMessage is "close_frame='\\xff\\x00'" 7 9 PASS closeEvent.wasClean is true 8 10 PASS successfullyParsed is true -
trunk/LayoutTests/http/tests/websocket/tests/client-close.html
r87674 r87719 15 15 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/client-close"); 16 16 var closeEvent; 17 var receivedMessage; 17 18 18 19 ws.onopen = function() … … 25 26 { 26 27 debug("Received: " + messageEvent.data); 28 receivedMessage = messageEvent.data; 27 29 }; 28 30 … … 31 33 debug("Closed"); 32 34 closeEvent = event; 35 shouldBeEqualToString("receivedMessage", "close_frame='\\xff\\x00'"); 33 36 shouldBeTrue("closeEvent.wasClean"); 34 37 finishJSTest(); -
trunk/LayoutTests/http/tests/websocket/tests/client-close_wsh.py
r87674 r87719 10 10 close_frame = request.ws_stream.receive_bytes(2) 11 11 12 # Tell the client what we have received. 13 msgutil.send_message(request, 'close_frame=%r' % close_frame) 14 12 15 # If the following assertion fails, AssertionError will be raised, 13 16 # which will prevent pywebsocket from sending a close frame.
Note: See TracChangeset
for help on using the changeset viewer.