feat(webkit): roll to r2092 (#33078)

This commit is contained in:
Playwright Service 2024-10-14 13:21:49 -07:00 committed by GitHub
parent a8df750a48
commit c7fbeddaf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -27,7 +27,7 @@
},
{
"name": "webkit",
"revision": "2091",
"revision": "2092",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446",

View File

@ -57,7 +57,7 @@ it('Safari Desktop', async ({ browser, browserName, platform, server, headless }
expected.publickeycredential = false;
expected.mediastream = false;
if (headless)
expected.todataurljpeg = false;
expected.todataurlwebp = true;
// GHA
delete actual.variablefonts;
@ -124,7 +124,7 @@ it('Mobile Safari', async ({ playwright, browser, browserName, platform, server,
expected.publickeycredential = false;
expected.mediastream = false;
if (headless)
expected.todataurljpeg = false;
expected.todataurlwebp = true;
// GHA
delete actual.variablefonts;

View File

@ -280,12 +280,13 @@ it.describe('page screenshot', () => {
expect(screenshot).toMatchSnapshot('screenshot-clip-odd-size.png');
});
it('should work for canvas', async ({ page, server, isElectron, isMac, macVersion, browserName, headless }) => {
it('should work for canvas', async ({ page, server, isElectron, isMac, isLinux, macVersion, browserName, headless }) => {
it.fixme(isElectron && isMac, 'Fails on the bots');
await page.setViewportSize({ width: 500, height: 500 });
await page.goto(server.PREFIX + '/screenshots/canvas.html');
const screenshot = await page.screenshot();
if (!headless && browserName === 'chromium' && isMac && os.arch() === 'arm64' && macVersion >= 14)
if ((!headless && browserName === 'chromium' && isMac && os.arch() === 'arm64' && macVersion >= 14) ||
(browserName === 'webkit' && isLinux))
expect(screenshot).toMatchSnapshot('screenshot-canvas-with-accurate-corners.png');
else
expect(screenshot).toMatchSnapshot('screenshot-canvas.png');

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB