Changeset 235759 in webkit


Ignore:
Timestamp:
Sep 6, 2018 2:48:34 PM (6 years ago)
Author:
dbates@webkit.org
Message:

[iOS] Add a test to ensure that DOM keyup events have the correct details
https://bugs.webkit.org/show_bug.cgi?id=189327

Reviewed by Wenson Hsieh.

Until we fix <rdar://problem/35282761> DOM keyup events will have incorrect details on iOS
when dispatched in response to a hardware keyboard press. For now, land expected failure results.

  • fast/events/ios/keyup-expected.txt: Added.
  • fast/events/ios/keyup.html: Added.
  • resources/ui-helper.js:

(window.UIHelper.typeCharacter): Escape backslash characters in order to build up
a well-formed UI script to evaluate.

Location:
trunk/LayoutTests
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r235754 r235759  
     12018-09-06  Daniel Bates  <dabates@apple.com>
     2
     3        [iOS] Add a test to ensure that DOM keyup events have the correct details
     4        https://bugs.webkit.org/show_bug.cgi?id=189327
     5
     6        Reviewed by Wenson Hsieh.
     7
     8        Until we fix <rdar://problem/35282761> DOM keyup events will have incorrect details on iOS
     9        when dispatched in response to a hardware keyboard press. For now, land expected failure results.
     10
     11        * fast/events/ios/keyup-expected.txt: Added.
     12        * fast/events/ios/keyup.html: Added.
     13        * resources/ui-helper.js:
     14        (window.UIHelper.typeCharacter): Escape backslash characters in order to build up
     15        a well-formed UI script to evaluate.
     16
    1172018-09-06  Andy Estes  <aestes@apple.com>
    218
  • trunk/LayoutTests/resources/ui-helper.js

    r235489 r235759  
    312312        }
    313313
    314         const escapedString = characterString.replace(/`/g, "\\`");
     314        const escapedString = characterString.replace(/\\/g, "\\\\").replace(/`/g, "\\`");
    315315        const uiScript = `uiController.typeCharacterUsingHardwareKeyboard(\`${escapedString}\`, () => uiController.uiScriptComplete())`;
    316316        return new Promise(resolve => testRunner.runUIScript(uiScript, resolve));
Note: See TracChangeset for help on using the changeset viewer.