--- electron/spec/chromium-spec.js.orig 2020-05-15 00:25:58 UTC +++ electron/spec/chromium-spec.js @@ -828,7 +828,7 @@ describe('chromium feature', () => { }); it('can be get as context in canvas', () => { - if (process.platform === 'linux') { + if (process.platform === 'linux' || process.platform === 'freebsd') { // FIXME(alexeykuzmin): Skip the test. // this.skip() return; @@ -1413,12 +1413,13 @@ describe('font fallback', () => { expect(fonts[0].familyName).to.equal({ 'win32': 'Arial', 'darwin': 'Helvetica', - 'linux': 'DejaVu Sans' // I think this depends on the distro? We don't specify a default. + 'linux': 'DejaVu Sans', // I think this depends on the distro? We don't specify a default. + 'freebsd': 'DejaVu Sans' }[process.platform]); }); it('should fall back to Japanese font for sans-serif Japanese script', async function () { - if (process.platform === 'linux') { + if (process.platform === 'linux' || process.platform === 'freebsd') { return this.skip(); } const html = `