feat(webkit): bump to 1357 (#4154)

This commit is contained in:
Joel Einbinder 2020-10-19 03:03:50 -07:00 committed by GitHub
parent 347dd2403b
commit 86ef956b4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 3 deletions

View File

@ -13,7 +13,7 @@
},
{
"name": "webkit",
"revision": "1353",
"revision": "1357",
"download": true
}
]

View File

@ -4540,6 +4540,27 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
}
export type dispatchMouseEventReturnValue = {
}
/**
* Dispatches a tap event to the page.
*/
export type dispatchTapEventParameters = {
/**
* X coordinate of the event relative to the main frame's viewport in CSS pixels.
*/
x: number;
/**
* Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
*/
y: number;
/**
* Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
(default: 0).
*/
modifiers?: number;
}
export type dispatchTapEventReturnValue = {
}
}
export module Inspector {
@ -8607,6 +8628,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreParameters;
"Input.dispatchKeyEvent": Input.dispatchKeyEventParameters;
"Input.dispatchMouseEvent": Input.dispatchMouseEventParameters;
"Input.dispatchTapEvent": Input.dispatchTapEventParameters;
"Inspector.enable": Inspector.enableParameters;
"Inspector.disable": Inspector.disableParameters;
"Inspector.initialized": Inspector.initializedParameters;
@ -8890,6 +8912,7 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreReturnValue;
"Input.dispatchKeyEvent": Input.dispatchKeyEventReturnValue;
"Input.dispatchMouseEvent": Input.dispatchMouseEventReturnValue;
"Input.dispatchTapEvent": Input.dispatchTapEventReturnValue;
"Inspector.enable": Inspector.enableReturnValue;
"Inspector.disable": Inspector.disableReturnValue;
"Inspector.initialized": Inspector.initializedReturnValue;

View File

@ -131,8 +131,8 @@ describe('mobile viewport', (suite, { browserName }) => {
await context.close();
});
it('should emulate the hover media feature', (test, { browserName }) => {
test.fail(browserName === 'webkit');
it('should emulate the hover media feature', (test, { browserName, platform }) => {
test.fail(browserName === 'webkit' && platform === 'darwin');
}, async ({playwright, browser}) => {
const iPhone = playwright.devices['iPhone 6'];
const mobilepage = await browser.newPage({ ...iPhone });