servoshell: Use DeviceIndependentPixel for WebDriver Rect related requests (#37893)

[Spec](https://w3c.github.io/webdriver/#set-window-rect) expects CSS
pixel for input and output. Previously, we use Device Pixel for them
instead.

Testing: Tested manually with different screen DPR and compared with
other browsers.
Fixes: Task 4 of https://github.com/servo/servo/issues/37804

---------

Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
Euclid Ye 2025-07-09 11:56:27 +08:00 committed by GitHub
parent 0db02702e7
commit 3526b7e86e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 66 additions and 269 deletions

View file

@ -22,252 +22,3 @@
[test_modifier_key_sends_correct_events[\\ue052-R_ALT\]]
expected: FAIL
[test_modifier_key_sends_correct_events[\\ue051-R_CONTROL\]]
expected: FAIL
[test_modifier_key_sends_correct_events[\\ue053-R_META\]]
expected: FAIL
[test_modifier_key_sends_correct_events[\\ue050-R_SHIFT\]]
expected: FAIL
[test_non_printable_key_sends_events[\\ue014-RIGHT\]]
expected: FAIL
[test_printable_key_sends_correct_events[a-KeyA0\]]
expected: FAIL
[test_printable_key_sends_correct_events[a-KeyA1\]]
expected: FAIL
[test_printable_key_sends_correct_events["-Quote\]]
expected: FAIL
[test_printable_key_sends_correct_events[,-Comma\]]
expected: FAIL
[test_printable_key_sends_correct_events[\\xe0-\]]
expected: FAIL
[test_printable_key_sends_correct_events[\\u0416-\]]
expected: FAIL
[test_printable_key_sends_correct_events[@-Digit2\]]
expected: FAIL
[test_printable_key_sends_correct_events[\\u2603-\]]
expected: FAIL
[test_printable_key_sends_correct_events[\\uf6c2-\]]
expected: FAIL
[test_sequence_of_keydown_printable_keys_sends_events]
expected: FAIL
[test_sequence_of_keydown_printable_characters_sends_events]
expected: FAIL
[test_special_key_sends_keydown[ADD-expected0\]]
expected: FAIL
[test_special_key_sends_keydown[ALT-expected1\]]
expected: FAIL
[test_special_key_sends_keydown[BACKSPACE-expected2\]]
expected: FAIL
[test_special_key_sends_keydown[CANCEL-expected3\]]
expected: FAIL
[test_special_key_sends_keydown[CLEAR-expected4\]]
expected: FAIL
[test_special_key_sends_keydown[CONTROL-expected5\]]
expected: FAIL
[test_special_key_sends_keydown[DECIMAL-expected6\]]
expected: FAIL
[test_special_key_sends_keydown[DELETE-expected7\]]
expected: FAIL
[test_special_key_sends_keydown[DIVIDE-expected8\]]
expected: FAIL
[test_special_key_sends_keydown[DOWN-expected9\]]
expected: FAIL
[test_special_key_sends_keydown[END-expected10\]]
expected: FAIL
[test_special_key_sends_keydown[ENTER-expected11\]]
expected: FAIL
[test_special_key_sends_keydown[ESCAPE-expected13\]]
expected: FAIL
[test_special_key_sends_keydown[F1-expected14\]]
expected: FAIL
[test_special_key_sends_keydown[F10-expected15\]]
expected: FAIL
[test_special_key_sends_keydown[F11-expected16\]]
expected: FAIL
[test_special_key_sends_keydown[F12-expected17\]]
expected: FAIL
[test_special_key_sends_keydown[F2-expected18\]]
expected: FAIL
[test_special_key_sends_keydown[F3-expected19\]]
expected: FAIL
[test_special_key_sends_keydown[F4-expected20\]]
expected: FAIL
[test_special_key_sends_keydown[F5-expected21\]]
expected: FAIL
[test_special_key_sends_keydown[F6-expected22\]]
expected: FAIL
[test_special_key_sends_keydown[F7-expected23\]]
expected: FAIL
[test_special_key_sends_keydown[F8-expected24\]]
expected: FAIL
[test_special_key_sends_keydown[F9-expected25\]]
expected: FAIL
[test_special_key_sends_keydown[HELP-expected26\]]
expected: FAIL
[test_special_key_sends_keydown[HOME-expected27\]]
expected: FAIL
[test_special_key_sends_keydown[INSERT-expected28\]]
expected: FAIL
[test_special_key_sends_keydown[LEFT-expected29\]]
expected: FAIL
[test_special_key_sends_keydown[META-expected30\]]
expected: FAIL
[test_special_key_sends_keydown[MULTIPLY-expected31\]]
expected: FAIL
[test_special_key_sends_keydown[NULL-expected32\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD0-expected33\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD1-expected34\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD2-expected35\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD3-expected36\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD4-expected37\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD5-expected38\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD6-expected39\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD7-expected40\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD8-expected41\]]
expected: FAIL
[test_special_key_sends_keydown[NUMPAD9-expected42\]]
expected: FAIL
[test_special_key_sends_keydown[PAGE_DOWN-expected43\]]
expected: FAIL
[test_special_key_sends_keydown[PAGE_UP-expected44\]]
expected: FAIL
[test_special_key_sends_keydown[RETURN-expected46\]]
expected: FAIL
[test_special_key_sends_keydown[RIGHT-expected47\]]
expected: FAIL
[test_special_key_sends_keydown[R_ALT-expected48\]]
expected: FAIL
[test_special_key_sends_keydown[R_ARROWDOWN-expected49\]]
expected: FAIL
[test_special_key_sends_keydown[R_ARROWLEFT-expected50\]]
expected: FAIL
[test_special_key_sends_keydown[R_ARROWRIGHT-expected51\]]
expected: FAIL
[test_special_key_sends_keydown[R_ARROWUP-expected52\]]
expected: FAIL
[test_special_key_sends_keydown[R_CONTROL-expected53\]]
expected: FAIL
[test_special_key_sends_keydown[R_DELETE-expected54\]]
expected: FAIL
[test_special_key_sends_keydown[R_END-expected55\]]
expected: FAIL
[test_special_key_sends_keydown[R_HOME-expected56\]]
expected: FAIL
[test_special_key_sends_keydown[R_INSERT-expected57\]]
expected: FAIL
[test_special_key_sends_keydown[R_META-expected58\]]
expected: FAIL
[test_special_key_sends_keydown[R_PAGEDOWN-expected59\]]
expected: FAIL
[test_special_key_sends_keydown[R_PAGEUP-expected60\]]
expected: FAIL
[test_special_key_sends_keydown[R_SHIFT-expected61\]]
expected: FAIL
[test_special_key_sends_keydown[SEMICOLON-expected62\]]
expected: FAIL
[test_special_key_sends_keydown[SEPARATOR-expected63\]]
expected: FAIL
[test_special_key_sends_keydown[SHIFT-expected64\]]
expected: FAIL
[test_special_key_sends_keydown[SPACE-expected65\]]
expected: FAIL
[test_special_key_sends_keydown[SUBTRACT-expected66\]]
expected: FAIL
[test_special_key_sends_keydown[TAB-expected67\]]
expected: FAIL
[test_special_key_sends_keydown[UP-expected68\]]
expected: FAIL
[test_special_key_sends_keydown[ZENKAKUHANKAKU-expected69\]]
expected: FAIL