Changeset 235759 in webkit
- Timestamp:
- Sep 6, 2018 2:48:34 PM (6 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r235754 r235759 1 2018-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 1 17 2018-09-06 Andy Estes <aestes@apple.com> 2 18 -
trunk/LayoutTests/resources/ui-helper.js
r235489 r235759 312 312 } 313 313 314 const escapedString = characterString.replace(/ `/g, "\\`");314 const escapedString = characterString.replace(/\\/g, "\\\\").replace(/`/g, "\\`"); 315 315 const uiScript = `uiController.typeCharacterUsingHardwareKeyboard(\`${escapedString}\`, () => uiController.uiScriptComplete())`; 316 316 return new Promise(resolve => testRunner.runUIScript(uiScript, resolve));
Note: See TracChangeset
for help on using the changeset viewer.