summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/delay.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/XMLHttpRequest/resources/delay.py')
-rw-r--r--testing/web-platform/tests/XMLHttpRequest/resources/delay.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/XMLHttpRequest/resources/delay.py b/testing/web-platform/tests/XMLHttpRequest/resources/delay.py
new file mode 100644
index 000000000..bdfef9b34
--- /dev/null
+++ b/testing/web-platform/tests/XMLHttpRequest/resources/delay.py
@@ -0,0 +1,6 @@
+import time
+
+def main(request, response):
+ delay = float(request.GET.first("ms", 500))
+ time.sleep(delay / 1E3);
+ return [("Content-type", "text/plain")], "TEST_DELAY"