spec: allow "Yu Gothic" as a Japanese sans-serif font on Windows (#20564)

This commit is contained in:
Alexey Kuzmin 2019-10-14 20:30:18 +02:00 committed by John Kleinschmidt
parent a7e26fdc61
commit b085dac15b

View file

@ -965,9 +965,9 @@ describe('font fallback', () => {
const fonts = await getRenderedFonts(html) const fonts = await getRenderedFonts(html)
expect(fonts).to.be.an('array') expect(fonts).to.be.an('array')
expect(fonts).to.have.length(1) expect(fonts).to.have.length(1)
expect(fonts[0].familyName).to.equal({ expect(fonts[0].familyName).to.be.oneOf({
'win32': 'Meiryo', 'win32': ['Meiryo', 'Yu Gothic'],
'darwin': 'Hiragino Kaku Gothic ProN' 'darwin': ['Hiragino Kaku Gothic ProN']
}[process.platform]) }[process.platform])
}) })
}) })