Skip to content

Commit e257981

Browse files
trop[bot]codebytere
authored andcommitted
spec: allow "Yu Gothic" as a Japanese sans-serif font on Windows (electron#20569)
1 parent ffb96ac commit e257981

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/chromium-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,9 +1568,9 @@ describe('font fallback', () => {
15681568
const fonts = await getRenderedFonts(html)
15691569
expect(fonts).to.be.an('array')
15701570
expect(fonts).to.have.length(1)
1571-
expect(fonts[0].familyName).to.equal({
1572-
'win32': 'Meiryo',
1573-
'darwin': 'Hiragino Kaku Gothic ProN'
1571+
expect(fonts[0].familyName).to.be.oneOf({
1572+
'win32': ['Meiryo', 'Yu Gothic'],
1573+
'darwin': ['Hiragino Kaku Gothic ProN']
15741574
}[process.platform])
15751575
})
15761576
})

0 commit comments

Comments
 (0)