Enable color selection submission/cancellation via keyboard
After this change, users of the color picker can submit their color selection via the enter key. They can also cancel their selection via the escape key. Additionally, to support tests for this scenario, a custom delay parameter is being added to waitUntilClosing. When a value is submitted in the color picker, a callback to set the input type color's value and close the popup is issued, with a 100ms delay. So, in order to validate behavior after the value change and popup closure, the callback delay needs to be at least 100ms. So the enter and escape keyboard input tests pass a 100ms custom delay to waitUntilClosing. The reason for using an optional custom delay parameter rather than just increasing the delay for all tests is to avoid breaking existing tests (specifically "datetimelocal-change-type-on-input-crash.html") that rely on a shorter delay. Bug: 1007426 Change-Id: I9596bd4cc5955f02124d6c820a7b60444a1e1fcc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1822843Reviewed-by:Mason Freed <masonfreed@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Commit-Queue: Sanket Joshi <sajos@microsoft.com> Cr-Commit-Position: refs/heads/master@{#700457}
Showing
Please register or sign in to comment