fune/testing/web-platform/tests/common/slow.py
Simon Pieters 10a9bd194d Bug 1651513 [wpt PR 24521] - HTML: Add tentative tests for speculative HTML parsing, a=testonly
Automatic update from web-platform-tests
HTML: Add tentative tests for speculative HTML parsing

See https://github.com/whatwg/html/issues/5624
--

wpt-commits: 9afacb73a04c1f33837eb0a7ffcd9ec16c9d477f
wpt-pr: 24521
2021-10-04 00:18:58 +00:00

6 lines
148 B
Python

import time
def main(request, response):
delay = float(request.GET.first(b"delay", 2000)) / 1000
time.sleep(delay)
return 200, [], b''