test: rebase modernizer Linux tests (#32268)

This commit is contained in:
Max Schmitt 2024-08-23 12:51:49 +02:00 committed by GitHub
parent 3a75f23ea1
commit 8c0e173d6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 15 deletions

View File

@ -29,7 +29,7 @@
"htmlimports": false,
"history": true,
"ie8compat": false,
"applicationcache": true,
"applicationcache": false,
"blobconstructor": true,
"blob-constructor": true,
"cookies": true,
@ -166,7 +166,7 @@
"srcdoc": true,
"imgcrossorigin": true,
"hashchange": true,
"inputsearchevent": true,
"inputsearchevent": false,
"ambientlight": false,
"datalistelem": true,
"videoloop": true,

View File

@ -29,7 +29,7 @@
"htmlimports": false,
"history": true,
"ie8compat": false,
"applicationcache": true,
"applicationcache": false,
"blobconstructor": true,
"blob-constructor": true,
"cookies": true,
@ -166,7 +166,7 @@
"srcdoc": true,
"imgcrossorigin": true,
"hashchange": true,
"inputsearchevent": true,
"inputsearchevent": false,
"ambientlight": false,
"datalistelem": true,
"videoloop": true,

View File

@ -32,7 +32,6 @@ async function checkFeatures(name: string, context: any, server: any) {
it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMac }) => {
it.skip(browserName !== 'webkit');
it.skip(browserName === 'webkit' && platform === 'darwin', 'WebKit for macOS 10.15 is frozen.');
it.skip(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 22, 'Modernizr uses WebGL which is not available in macOS-13 - https://bugs.webkit.org/show_bug.cgi?id=278277');
const context = await browser.newContext({
deviceScaleFactor: 2
@ -41,6 +40,7 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isM
if (platform === 'linux') {
expected.subpixelfont = false;
expected.speechrecognition = false;
if (headless)
expected.todataurljpeg = false;
@ -56,7 +56,6 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isM
if (platform === 'win32') {
expected.datalistelem = false;
expected.fileinputdirectory = false;
expected.getusermedia = false;
expected.peerconnection = false;
expected.speechrecognition = false;
@ -64,6 +63,7 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isM
expected.todataurljpeg = false;
expected.unicode = false;
expected.webaudio = false;
expected.gamepads = false;
expected.input.list = false;
expected.inputtypes.color = false;
@ -72,10 +72,8 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isM
expected.inputtypes.time = false;
}
if (isMac && parseInt(os.release(), 10) > 20) {
if (isMac && parseInt(os.release(), 10) > 20)
expected.applicationcache = false;
expected.inputsearchevent = false;
}
expect(actual).toEqual(expected);
});
@ -99,6 +97,7 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, is
if (platform === 'linux') {
expected.subpixelfont = false;
expected.speechrecognition = false;
if (headless)
expected.todataurljpeg = false;
@ -114,7 +113,6 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, is
if (platform === 'win32') {
expected.datalistelem = false;
expected.fileinputdirectory = false;
expected.getusermedia = false;
expected.peerconnection = false;
expected.speechrecognition = false;
@ -122,6 +120,7 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, is
expected.todataurljpeg = false;
expected.unicode = false;
expected.webaudio = false;
expected.gamepads = false;
expected.input.list = false;
expected.inputtypes.color = false;
@ -133,11 +132,6 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, is
expected.inputtypes.time = false;
}
if (isMac && parseInt(os.release(), 10) > 20) {
expected.applicationcache = false;
expected.inputsearchevent = false;
}
expect(actual).toEqual(expected);
});