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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/fetch/api/resources/bad-chunk-encoding.py

Issue 2778753002: Import //fetch from Web Platform Tests. (Closed)
Patch Set: Baselines. Created 3 years, 8 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 time
2
3 def main(request, response):
4 delay = float(request.GET.first("ms", 1000)) / 1E3
5 count = int(request.GET.first("count", 50))
6 time.sleep(delay)
7 response.headers.set("Transfer-Encoding", "chunked")
8 response.write_status_headers()
9 time.sleep(delay);
10 for i in xrange(count):
11 response.writer.write_content("a\r\nTEST_CHUNK\r\n")
12 time.sleep(delay)
13 response.writer.write_content("garbage")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698