Bug 217951

Summary: WebDriver: sequence of char key press is not supported
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, bburg, clopez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 217950    
Bug Blocks: 166679    
Attachments:
Description Flags
Patch
bburg: review-
Patch bburg: review+

Description Carlos Garcia Campos 2020-10-20 06:13:56 PDT
We are assuming there can be only one char key pressed at a time. There's on test failing because of this:

imported/w3c/webdriver/tests/perform_actions/key_events.py::test_sequence_of_keydown_printable_keys_sends_events
Comment 1 Carlos Garcia Campos 2020-10-20 06:18:20 PDT
Created attachment 411859 [details]
Patch
Comment 2 BJ Burg 2020-10-20 08:34:50 PDT
Comment on attachment 411859 [details]
Patch

r- due to failing build.

Overall this looks like an improvement. I am worried about iteration order of the char keys being undefined and causing flaky test failures. Can we use ListHashSet to avoid this?
Comment 3 Carlos Garcia Campos 2020-10-21 00:34:27 PDT
(In reply to Brian Burg from comment #2)
> Comment on attachment 411859 [details]
> Patch
> 
> r- due to failing build.

EWS is red because the patch depends on bug #217950.

> Overall this looks like an improvement. I am worried about iteration order
> of the char keys being undefined and causing flaky test failures. Can we use
> ListHashSet to avoid this?

I'll submit a rebased patch after landing bug #217950 using LinkHashSet
Comment 4 Carlos Garcia Campos 2020-10-22 03:01:29 PDT
Created attachment 412080 [details]
Patch
Comment 5 BJ Burg 2020-10-26 17:00:25 PDT
Comment on attachment 412080 [details]
Patch

r=me
Comment 6 Radar WebKit Bug Importer 2020-10-27 06:14:47 PDT
<rdar://problem/70719725>
Comment 7 Carlos Garcia Campos 2020-10-27 06:26:59 PDT
Committed r269035: <https://trac.webkit.org/changeset/269035>