mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: allow "Yu Gothic" as a Japanese sans-serif font on Windows (#20569)
This commit is contained in:
@@ -1568,9 +1568,9 @@ describe('font fallback', () => {
|
||||
const fonts = await getRenderedFonts(html)
|
||||
expect(fonts).to.be.an('array')
|
||||
expect(fonts).to.have.length(1)
|
||||
expect(fonts[0].familyName).to.equal({
|
||||
'win32': 'Meiryo',
|
||||
'darwin': 'Hiragino Kaku Gothic ProN'
|
||||
expect(fonts[0].familyName).to.be.oneOf({
|
||||
'win32': ['Meiryo', 'Yu Gothic'],
|
||||
'darwin': ['Hiragino Kaku Gothic ProN']
|
||||
}[process.platform])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user