test: update golden values in keyIdentifier test (#2155)

This commit is contained in:
Joel Einbinder 2020-05-08 04:51:42 -07:00 committed by GitHub
parent 1b54716791
commit 436bc5cadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ describe('Keyboard', function() {
}); });
// event.keyIdentifier has been removed from all browsers except WebKit // event.keyIdentifier has been removed from all browsers except WebKit
it.skip(!WEBKIT).fail(!LINUX)('should expose keyIdentifier in webkit', async({page, server}) => { it.skip(!WEBKIT).fail(true)('should expose keyIdentifier in webkit', async({page, server}) => {
await page.evaluate(() => { await page.evaluate(() => {
document.addEventListener('keydown', event => { document.addEventListener('keydown', event => {
window.lastKeyIdentifier = event.keyIdentifier window.lastKeyIdentifier = event.keyIdentifier
@ -368,8 +368,8 @@ describe('Keyboard', function() {
'Backspace': 'U+0008', 'Backspace': 'U+0008',
'Tab': 'U+0009', 'Tab': 'U+0009',
'Delete': 'U+007F', 'Delete': 'U+007F',
'a': 'U+0061', 'a': 'U+0041',
'b': 'U+0062', 'b': 'U+0042',
'F12': 'F12', 'F12': 'F12',
}; };
for (const [key, keyIdentifier] of Object.entries(keyMap)) { for (const [key, keyIdentifier] of Object.entries(keyMap)) {