feat(webkit): roll webkit to r1395 (#4550)
This commit is contained in:
parent
e8419f85b6
commit
9c677f64e0
|
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webkit",
|
"name": "webkit",
|
||||||
"revision": "1391",
|
"revision": "1395",
|
||||||
"download": true
|
"download": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,7 @@ it('should emulate device height', async ({page, server}) => {
|
||||||
expect(await page.evaluate(() => matchMedia('(device-height: 500px)').matches)).toBe(true);
|
expect(await page.evaluate(() => matchMedia('(device-height: 500px)').matches)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should emulate availWidth and availHeight', (test, { browserName, platform, headful }) => {
|
it('should emulate availWidth and availHeight', async ({page}) => {
|
||||||
test.fail(browserName === 'webkit' && (platform !== 'linux' || headful), 'Not implemented');
|
|
||||||
}, async ({page}) => {
|
|
||||||
await page.setViewportSize({width: 500, height: 600});
|
await page.setViewportSize({width: 500, height: 600});
|
||||||
expect(await page.evaluate(() => window.screen.availWidth)).toBe(500);
|
expect(await page.evaluate(() => window.screen.availWidth)).toBe(500);
|
||||||
expect(await page.evaluate(() => window.screen.availHeight)).toBe(600);
|
expect(await page.evaluate(() => window.screen.availHeight)).toBe(600);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue