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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import time
2
3 def main(request, response):
4 response.headers.append("Content-Type", "text/javascript")
5 try:
6 script_id = int(request.GET.first("id"))
7 delay = int(request.GET.first("sec"))
8 except:
9 response.set_error(400, "Invalid parameter")
10
11 time.sleep(int(delay))
12
13 return "log('%s')" % script_id
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698