Opaque being-loaded responses should clone their body
[WebKit-https.git] / LayoutTests / http / wpt / service-workers / resources / lengthy-pass.py
1 import time
2
3 def main(request, response):
4     delay = 0.05
5     response.headers.set("Content-type", "text/javascript")
6     response.write_status_headers()
7     time.sleep(delay);
8     response.writer.write_content("document")
9     time.sleep(delay)
10     response.writer.write_content(".body")
11     time.sleep(delay)
12     response.writer.write_content(".innerHTML = ")
13     time.sleep(delay)
14     response.writer.write_content("'PASS'")
15     time.sleep(delay)