mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 4af6af604800559d2c58cf3561621ae43e28aaa8
This commit is contained in:
parent
19c1f72eb2
commit
1a24e35f18
150 changed files with 3701 additions and 419 deletions
|
@ -3,14 +3,14 @@ import time
|
|||
from six.moves import xrange
|
||||
|
||||
def main(request, response):
|
||||
delay = float(request.GET.first("ms", 500)) / 1E3
|
||||
count = int(request.GET.first("count", 50))
|
||||
delay = float(request.GET.first(b"ms", 500)) / 1E3
|
||||
count = int(request.GET.first(b"count", 50))
|
||||
# Read request body
|
||||
request.body
|
||||
time.sleep(delay)
|
||||
response.headers.set("Content-type", "text/plain")
|
||||
response.headers.set(b"Content-type", b"text/plain")
|
||||
response.write_status_headers()
|
||||
time.sleep(delay)
|
||||
for i in xrange(count):
|
||||
response.writer.write_content("TEST_TRICKLE\n")
|
||||
response.writer.write_content(u"TEST_TRICKLE\n")
|
||||
time.sleep(delay)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue