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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resources/import-scripts-version.py

Issue 2864783002: Upstream service wrkr `importScripts` tests to WPT (Closed)
Patch Set: Incorporate review feedback Created 3 years, 7 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
OLDNEW
(Empty)
1 import datetime
2 import time
3
4 epoch = datetime.datetime(1970, 1, 1)
5
6 def main(req, res):
7 # Artificially delay response time in order to ensure uniqueness of
8 # computed value
9 time.sleep(0.1)
10
11 now = (datetime.datetime.now() - epoch).total_seconds()
12
13 return ([
14 ('Cache-Control', 'no-cache, must-revalidate'),
15 ('Pragma', 'no-cache'),
16 ('Content-Type', 'application/javascript')],
17 'version = "%s";\n' % now)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698