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

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

Issue 2015623004: Import wpt@ed94c51f3dfaa5ff4c9c311add1a560408059c51 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
new file mode 100644
index 0000000000000000000000000000000000000000..eb9c654444bd80b165cc9fed29e12b550a87935c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/common/form-submission.py
@@ -0,0 +1,12 @@
+def main(request, response):
+ if request.headers.get('Content-Type') == 'application/x-www-form-urlencoded':
+ if request.body == 'foo=bara':
+ return 'OK'
+ else:
+ return 'FAIL'
+ else:
+ if request.POST.first('foo') == 'bar':
+ return 'OK'
+ else:
+ return 'FAIL'
+

Powered by Google App Engine
This is Rietveld 408576698