summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/event-timing/resources/slow-image.py
blob: c2f91655cf39f58b7940f2bedb4c58b8d699f01b (plain)
1
2
3
4
5
6
7
import time

def main(request, response):
    # Sleep for 500ms to delay onload.
    time.sleep(0.5)
    response.headers.set(b"Cache-Control", b"no-cache, must-revalidate");
    response.headers.set(b"Location", b"data:image/gif;base64,R0lGODlhAQABAJAAAMjIyAAAACwAAAAAAQABAAACAgQBADs%3D");