From b085dac15b510bd54d7a069a0d46ae847b9a4aaa Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Mon, 14 Oct 2019 20:30:18 +0200 Subject: [PATCH] spec: allow "Yu Gothic" as a Japanese sans-serif font on Windows (#20564) --- spec/chromium-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index 708bd32e78b..35600a22ae8 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -965,9 +965,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]) }) })