Index: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py |
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6803bb3e405e520f56c70b23ec17a909f9ae7cba |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py |
@@ -0,0 +1,13 @@ |
+import time |
+ |
+def main(request, response): |
+ response.headers.append("Content-Type", "text/javascript") |
+ try: |
+ script_id = int(request.GET.first("id")) |
+ delay = int(request.GET.first("sec")) |
+ except: |
+ response.set_error(400, "Invalid parameter") |
+ |
+ time.sleep(int(delay)) |
+ |
+ return "log('%s')" % script_id |