Changeset 268858 in webkit
- Timestamp:
- Oct 22, 2020, 2:42:22 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp (modified) (1 diff)
-
Source/WebKit/UIProcess/Automation/wpe/WebAutomationSessionWPE.cpp (modified) (1 diff)
-
WebDriverTests/ChangeLog (modified) (1 diff)
-
WebDriverTests/TestExpectations.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r268854 r268858 1 2020-10-22 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 WebDriver: handle key events with non-ASCII unicode code point 4 https://bugs.webkit.org/show_bug.cgi?id=217950 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 We are assuming that key events are limited to ASCII, but they contain a unicode code point. 9 10 Fixes: imported/w3c/webdriver/tests/perform_actions/key_events.py::test_printable_key_sends_correct_events[\xe0-] 11 imported/w3c/webdriver/tests/perform_actions/key_events.py::test_printable_key_sends_correct_events[\u0416-] 12 imported/w3c/webdriver/tests/perform_actions/key_events.py::test_printable_key_sends_correct_events[\u2603-] 13 imported/w3c/webdriver/tests/perform_actions/key_events.py::test_printable_key_sends_correct_events[\uf6c2-] 14 15 * UIProcess/Automation/SimulatedInputDispatcher.h: Use UChar32 instead of char for CharKey. 16 * UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp: 17 (WebKit::WebAutomationSession::platformSimulateKeyboardInteraction): Handle Charkey as a unicode code point. 18 * UIProcess/Automation/wpe/WebAutomationSessionWPE.cpp: 19 (WebKit::WebAutomationSession::platformSimulateKeyboardInteraction): Ditto. 20 1 21 2020-10-21 Ryosuke Niwa <rniwa@webkit.org> 2 22 -
trunk/Source/WebKit/UIProcess/Automation/SimulatedInputDispatcher.h
r268793 r268858 59 59 using VirtualKey = Inspector::Protocol::Automation::VirtualKey; 60 60 using VirtualKeyMap = HashMap<VirtualKey, VirtualKey, WTF::IntHash<VirtualKey>, WTF::StrongEnumHashTraits<VirtualKey>>; 61 using CharKey = char; // For WebDriver, this only needs to support ASCII characters on 102-key keyboard.61 using CharKey = UChar32; 62 62 using MouseButton = Inspector::Protocol::Automation::MouseButton; 63 63 using MouseInteraction = Inspector::Protocol::Automation::MouseInteraction; -
trunk/Source/WebKit/UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp
r268793 r268858 294 294 }, 295 295 [&] (CharKey charKey) { 296 keyCode = gdk_unicode_to_keyval( g_utf8_get_char(&charKey));296 keyCode = gdk_unicode_to_keyval(charKey); 297 297 } 298 298 ); -
trunk/Source/WebKit/UIProcess/Automation/wpe/WebAutomationSessionWPE.cpp
r268793 r268858 334 334 }, 335 335 [&] (CharKey charKey) { 336 keyCode = wpe_unicode_to_key_code( g_utf8_get_char(&charKey));336 keyCode = wpe_unicode_to_key_code(charKey); 337 337 } 338 338 ); -
trunk/WebDriverTests/ChangeLog
r268857 r268858 1 2020-10-22 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 WebDriver: handle key events with non-ASCII unicode code point 4 https://bugs.webkit.org/show_bug.cgi?id=217950 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 Remove expectations for tests that are now passing. 9 10 * TestExpectations.json: 11 1 12 2020-10-22 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/WebDriverTests/TestExpectations.json
r268857 r268858 363 363 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}} 364 364 }, 365 "test_printable_key_sends_correct_events[\\xe0-]": {366 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}367 },368 "test_printable_key_sends_correct_events[\\u0416-]": {369 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}370 },371 "test_printable_key_sends_correct_events[\\u2603-]": {372 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}373 },374 "test_printable_key_sends_correct_events[\\uf6c2-]": {375 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}376 },377 365 "test_special_key_sends_keydown[META-expected30]": { 378 366 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
Note:
See TracChangeset
for help on using the changeset viewer.