summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/infrastructure/testdriver/file_upload.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/infrastructure/testdriver/file_upload.py')
-rw-r--r--testing/web-platform/tests/infrastructure/testdriver/file_upload.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/web-platform/tests/infrastructure/testdriver/file_upload.py b/testing/web-platform/tests/infrastructure/testdriver/file_upload.py
new file mode 100644
index 0000000000..9c4dd75438
--- /dev/null
+++ b/testing/web-platform/tests/infrastructure/testdriver/file_upload.py
@@ -0,0 +1,2 @@
+def main(request, response):
+ return b"PASS" if request.POST[b"file_input"].file.read() == b"File to upload\n" else b"FAIL"