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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-echo.py

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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/external/wpt/html/semantics/forms/form-submission-0/form-echo.py
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-echo.py b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-echo.py
new file mode 100644
index 0000000000000000000000000000000000000000..a7f0dc87efd2d3bf8798919649873cb81fc25ade
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/form-submission-0/form-echo.py
@@ -0,0 +1,7 @@
+def main(request, response):
+ bytes = bytearray(request.raw_input.read())
+ bytes_string = " ".join("%02x" % b for b in bytes)
+ return (
+ [("Content-Type", "text/plain")],
+ bytes_string
+ )

Powered by Google App Engine
This is Rietveld 408576698