-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=67182 Patch by Takashi Toyoshima <toyoshim@chromium.org> on 2011-08-31 Reviewed by Kent Tamura. Some layout tests for WebSocket raised Exception to prevent unnecessary pywebsocket warning. But it doesn't work any more on pywebsocket 0.6b4. Now pywebsocket support AbortedByUserException to prevent warning. This change make raise AbortedByUserException instead of Exception. handshake-fail-by-prepended-null_wsh.py didn't use Exception, but expected abnormal closure on sending response could raise unexpected Exception by chance. This change also takes care of it. * http/tests/websocket/tests/hixie76/bad-handshake-crash_wsh.py: * http/tests/websocket/tests/hixie76/frame-length-longer-than-buffer_wsh.py: * http/tests/websocket/tests/hixie76/frame-length-overflow_wsh.py: * http/tests/websocket/tests/hixie76/handshake-fail-by-maxlength_wsh.py: * http/tests/websocket/tests/hixie76/handshake-fail-by-no-connection-header_wsh.py: * http/tests/websocket/tests/hixie76/handshake-fail-by-no-cr_wsh.py: * http/tests/websocket/tests/hixie76/handshake-fail-by-no-upgrade-header_wsh.py: * http/tests/websocket/tests/hixie76/handshake-fail-by-prepended-null_wsh.py: * http/tests/websocket/tests/hixie76/long-invalid-header_wsh.py: * http/tests/websocket/tests/hybi/bad-handshake-crash_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-extensions-header_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-maxlength_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-no-accept-header_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-no-connection-header_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-no-cr_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-no-upgrade-header_wsh.py: * http/tests/websocket/tests/hybi/handshake-fail-by-wrong-accept-header_wsh.py: * http/tests/websocket/tests/hybi/long-invalid-header_wsh.py: * http/tests/websocket/tests/hybi/masked-frames_wsh.py: Use AbortedByUserException instead of Exception. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2ca72d77