https://github.com/web-platform-tests/wpt
Raw File
Tip revision: be42da5976a6b7ae2ebe9965350a786946fbd072 authored by Frédéric Wang on 20 September 2018, 14:08:51 UTC
CSSOM View Scroll Behavior: Check scroll positions during smooth scrolling starting from different initial positions.
Tip revision: be42da5
set-cookie_wsh.py
#!/usr/bin/python
from six.moves import urllib


def web_socket_do_extra_handshake(request):
    url_parts = urllib.parse.urlsplit(request.uri)
    request.extra_headers.append(('Set-Cookie', 'ws_test_'+(url_parts.query or '')+'=test; Path=/'))

def web_socket_transfer_data(request):
    # Expect close from user agent.
    request.ws_stream.receive_message()
back to top