Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-script-element/log.py

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698