feat(webkit): roll webkit to r1395 (#4550)

This commit is contained in:
Joel Einbinder 2020-12-01 05:26:53 -08:00 committed by GitHub
parent e8419f85b6
commit 9c677f64e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -82,9 +82,7 @@ it('should emulate device height', async ({page, server}) => {
expect(await page.evaluate(() => matchMedia('(device-height: 500px)').matches)).toBe(true);
});
it('should emulate availWidth and availHeight', (test, { browserName, platform, headful }) => {
test.fail(browserName === 'webkit' && (platform !== 'linux' || headful), 'Not implemented');
}, async ({page}) => {
it('should emulate availWidth and availHeight', async ({page}) => {
await page.setViewportSize({width: 500, height: 600});
expect(await page.evaluate(() => window.screen.availWidth)).toBe(500);
expect(await page.evaluate(() => window.screen.availHeight)).toBe(600);