Changeset 272726 in webkit


Ignore:
Timestamp:
Feb 11, 2021, 7:25:20 AM (5 years ago)
Author:
Manuel Rego Casasnovas
Message:

Add more Selenium key codes for test_driver.send_keys()
https://bugs.webkit.org/show_bug.cgi?id=221674

Reviewed by Carlos Garcia Campos.

LayoutTests/imported/w3c:

Add more Selenium key codes (https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html).
Not all of them are added, only the ones that are supported in eventSender.keyDown().

  • web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt: Updated expectations

as this test was using the code for ENTER.

  • web-platform-tests/resources/testdriver-vendor.js:

LayoutTests:

  • platform/ios/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt.
Location:
trunk/LayoutTests
Files:
1 added
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r272722 r272726  
     12021-02-11  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        Add more Selenium key codes for test_driver.send_keys()
     4        https://bugs.webkit.org/show_bug.cgi?id=221674
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/ios/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt.
     9
    1102021-02-11  Youenn Fablet  <youenn@apple.com>
    211
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r272711 r272726  
     12021-02-11  Manuel Rego Casasnovas  <rego@igalia.com>
     2
     3        Add more Selenium key codes for test_driver.send_keys()
     4        https://bugs.webkit.org/show_bug.cgi?id=221674
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Add more Selenium key codes (https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.keys.html).
     9        Not all of them are added, only the ones that are supported in eventSender.keyDown().
     10
     11        * web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt: Updated expectations
     12        as this test was using the code for ENTER.
     13        * web-platform-tests/resources/testdriver-vendor.js:
     14
    1152021-02-11  Ziran Sun  <zsun@igalia.com>
    216
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/forms/form-submission-0/implicit-submission.optional-expected.txt

    r253791 r272726  
    33
    44
    5 FAIL Submit event with a submit button promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'event.bubbles')"
    6 FAIL Submit event with no submit button promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'event.bubbles')"
     5FAIL Submit event with a submit button promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: SubmitEvent"
     6FAIL Submit event with no submit button assert_equals: expected (object) null but got (undefined) undefined
    77
  • trunk/LayoutTests/imported/w3c/web-platform-tests/resources/testdriver-vendor.js

    r272651 r272726  
    158158    const SeleniumCharCodeToEventSenderKey = {
    159159        0xE003: { key: 'delete' },
    160         0xE004: { key: '\t' },
     160        0XE004: { key: '\t' },
     161        0XE005: { key: 'clear' },
     162        0XE006: { key: '\r' },
     163        0XE007: { key: 'enter' },
     164        0xE008: { key: 'leftShift', modifier: 'shiftKey' },
     165        0xE009: { key: 'leftControl', modifier: 'ctrlKey' },
     166        0xE00A: { key: 'leftAlt', modifier: 'altKey' },
     167        0XE00C: { key: 'escape' },
    161168        0xE00D: { key: ' ' },
     169        0XE00E: { key: 'pageUp' },
     170        0XE00F: { key: 'pageDown' },
     171        0XE010: { key: 'end' },
     172        0XE011: { key: 'home' },
    162173        0xE012: { key: 'leftArrow' },
    163174        0xE013: { key: 'upArrow' },
    164175        0xE014: { key: 'rightArrow' },
    165176        0xE015: { key: 'downArrow' },
    166         0xE008: { key: 'leftShift', modifier: 'shiftKey' },
    167         0xE009: { key: 'leftControl', modifier: 'ctrlKey' },
    168         0xE00A: { key: 'leftAlt', modifier: 'altKey' },
     177        0XE016: { key: 'insert' },
     178        0XE017: { key: 'delete' },
     179        0XE018: { key: ';' },
     180        0XE019: { key: '=' },
     181        0XE031: { key: 'F1' },
     182        0XE032: { key: 'F2' },
     183        0XE033: { key: 'F3' },
     184        0XE034: { key: 'F4' },
     185        0XE035: { key: 'F5' },
     186        0XE036: { key: 'F6' },
     187        0XE037: { key: 'F7' },
     188        0XE038: { key: 'F8' },
     189        0XE039: { key: 'F9' },
     190        0XE03A: { key: 'F10' },
     191        0XE03B: { key: 'F11' },
     192        0XE03C: { key: 'F12' },
    169193        0xE03D: { key: 'leftMeta', modifier: 'metaKey' },
    170194    };
Note: See TracChangeset for help on using the changeset viewer.