mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -3,7 +3,7 @@ Stash
|
|||
|
||||
Object for storing cross-request state. This is unusual in that keys
|
||||
must be UUIDs, in order to prevent different clients setting the same
|
||||
key, and values are write-once, read-once to minimise the chances of
|
||||
key, and values are write-once, read-once to minimize the chances of
|
||||
state persisting indefinitely. The stash defines two operations;
|
||||
`put`, to add state and `take` to remove state. Furthermore, the view
|
||||
of the stash is path-specific; by default a request will only see the
|
||||
|
|
|
@ -111,7 +111,7 @@ class WebTestServer(ThreadingMixIn, BaseHTTPServer.HTTPServer):
|
|||
daemon_threads = True
|
||||
|
||||
def __init__(self, server_address, request_handler_cls,
|
||||
router, rewriter, bind_hostname,
|
||||
router, rewriter, bind_address,
|
||||
config=None, use_ssl=False, key_file=None, certificate=None,
|
||||
encrypt_after_connect=False, latency=None, **kwargs):
|
||||
"""Server for HTTP(s) Requests
|
||||
|
@ -141,10 +141,10 @@ class WebTestServer(ThreadingMixIn, BaseHTTPServer.HTTPServer):
|
|||
This enables the server to act as a
|
||||
self-proxy.
|
||||
|
||||
:param bind_hostname True to bind the server to both the hostname and
|
||||
port specified in the server_address parameter.
|
||||
False to bind the server only to the port in the
|
||||
server_address parameter, but not to the hostname.
|
||||
:param bind_address True to bind the server to both the IP address and
|
||||
port specified in the server_address parameter.
|
||||
False to bind the server only to the port in the
|
||||
server_address parameter, but not to the address.
|
||||
:param latency: Delay in ms to wait before seving each response, or
|
||||
callable that returns a delay in ms
|
||||
"""
|
||||
|
@ -156,7 +156,7 @@ class WebTestServer(ThreadingMixIn, BaseHTTPServer.HTTPServer):
|
|||
|
||||
self.latency = latency
|
||||
|
||||
if bind_hostname:
|
||||
if bind_address:
|
||||
hostname_port = server_address
|
||||
else:
|
||||
hostname_port = ("",server_address[1])
|
||||
|
@ -343,7 +343,7 @@ class WebTestHttpd(object):
|
|||
:param rewrites: List of rewrites with which to initialize the rewriter_cls
|
||||
:param config: Dictionary holding environment configuration settings for
|
||||
handlers to read, or None to use the default values.
|
||||
:param bind_hostname: Boolean indicating whether to bind server to hostname.
|
||||
:param bind_address: Boolean indicating whether to bind server to IP address.
|
||||
:param latency: Delay in ms to wait before seving each response, or
|
||||
callable that returns a delay in ms
|
||||
|
||||
|
@ -381,7 +381,7 @@ class WebTestHttpd(object):
|
|||
server_cls=None, handler_cls=WebTestRequestHandler,
|
||||
use_ssl=False, key_file=None, certificate=None, encrypt_after_connect=False,
|
||||
router_cls=Router, doc_root=os.curdir, routes=None,
|
||||
rewriter_cls=RequestRewriter, bind_hostname=True, rewrites=None,
|
||||
rewriter_cls=RequestRewriter, bind_address=True, rewrites=None,
|
||||
latency=None, config=None):
|
||||
|
||||
if routes is None:
|
||||
|
@ -409,7 +409,7 @@ class WebTestHttpd(object):
|
|||
self.router,
|
||||
self.rewriter,
|
||||
config=config,
|
||||
bind_hostname=bind_hostname,
|
||||
bind_address=bind_address,
|
||||
use_ssl=use_ssl,
|
||||
key_file=key_file,
|
||||
certificate=certificate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue