Changeset 87719 in webkit


Ignore:
Timestamp:
May 31, 2011 3:20:05 AM (13 years ago)
Author:
yutak@chromium.org
Message:

2011-05-31 Yuta Kitamura <yutak@chromium.org>

Reviewed by Kent Tamura.

WebSocket: Make the output of client-close.html more verbose
https://bugs.webkit.org/show_bug.cgi?id=61770

  • http/tests/websocket/tests/client-close-expected.txt:
  • http/tests/websocket/tests/client-close.html:
  • http/tests/websocket/tests/client-close_wsh.py: Echo back the first two bytes received from the client.
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r87717 r87719  
     12011-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
    1132011-05-31  Zoltan Horvath  <zoltan@webkit.org>
    214
  • trunk/LayoutTests/http/tests/websocket/tests/client-close-expected.txt

    r87674 r87719  
    44
    55Connected
     6Received: close_frame='\xff\x00'
    67Closed
     8PASS receivedMessage is "close_frame='\\xff\\x00'"
    79PASS closeEvent.wasClean is true
    810PASS successfullyParsed is true
  • trunk/LayoutTests/http/tests/websocket/tests/client-close.html

    r87674 r87719  
    1515var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/client-close");
    1616var closeEvent;
     17var receivedMessage;
    1718
    1819ws.onopen = function()
     
    2526{
    2627    debug("Received: " + messageEvent.data);
     28    receivedMessage = messageEvent.data;
    2729};
    2830
     
    3133    debug("Closed");
    3234    closeEvent = event;
     35    shouldBeEqualToString("receivedMessage", "close_frame='\\xff\\x00'");
    3336    shouldBeTrue("closeEvent.wasClean");
    3437    finishJSTest();
  • trunk/LayoutTests/http/tests/websocket/tests/client-close_wsh.py

    r87674 r87719  
    1010    close_frame = request.ws_stream.receive_bytes(2)
    1111
     12    # Tell the client what we have received.
     13    msgutil.send_message(request, 'close_frame=%r' % close_frame)
     14
    1215    # If the following assertion fails, AssertionError will be raised,
    1316    # which will prevent pywebsocket from sending a close frame.
Note: See TracChangeset for help on using the changeset viewer.