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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py

Issue 2022203002: Import wpt@d510ec1abc30eee4c855c13842bc2f0dfa791f8b (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Message changed by testharness.js update Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py b/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
index eb9c654444bd80b165cc9fed29e12b550a87935c..78f96fe3145c6544f49229792a9267fa8bb0dae9 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
+++ b/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
@@ -4,6 +4,11 @@ def main(request, response):
return 'OK'
else:
return 'FAIL'
+ elif request.headers.get('Content-Type') == 'text/plain':
+ if request.body == 'qux=baz\r\n':
+ return 'OK'
+ else:
+ return 'FAIL'
else:
if request.POST.first('foo') == 'bar':
return 'OK'

Powered by Google App Engine
This is Rietveld 408576698