Enable file uploads in web_tests via testdriver-vendor.js.
testdriver supports file uploads via send_keys to the input element, on the other hand eventSender supports file uploads via drag&drop to the input element. So this CL implements test_driver_internal.send_keys by using the drag&drop functionality if the target element is an <input type=file>. Also fixes a bug in file_upload.sub.html where backslashes in the file path weren't being escaped, resulting in the test not working on windows. Change-Id: I9a446f8dac3ae7817bb03ba9592d2537223b0f33 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974849 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#726873}
Showing
Please register or sign in to comment