diff options
Diffstat (limited to 'devel/electron13/files/patch-electron_spec-main_chromium-spec.ts')
-rw-r--r-- | devel/electron13/files/patch-electron_spec-main_chromium-spec.ts | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-electron_spec-main_chromium-spec.ts b/devel/electron13/files/patch-electron_spec-main_chromium-spec.ts new file mode 100644 index 000000000000..272552f5f061 --- /dev/null +++ b/devel/electron13/files/patch-electron_spec-main_chromium-spec.ts @@ -0,0 +1,45 @@ +--- electron/spec-main/chromium-spec.ts.orig 2021-10-27 21:25:28 UTC ++++ electron/spec-main/chromium-spec.ts +@@ -397,14 +397,14 @@ describe('command line switches', () => { + it('should not set an invalid locale', async () => testLocale('asdfkl', currentLocale)); + + const lcAll = String(process.env.LC_ALL); +- ifit(process.platform === 'linux')('current process has a valid LC_ALL env', async () => { ++ ifit(process.platform === 'linux' || process.platform === 'freebsd')('current process has a valid LC_ALL env', async () => { + // The LC_ALL env should not be set to DOM locale string. + expect(lcAll).to.not.equal(app.getLocale()); + }); + // TODO(jeremy): figure out why this times out under ASan +- ifit(process.platform === 'linux' && !process.env.IS_ASAN)('should not change LC_ALL', async () => testLocale('fr', lcAll, true)); +- ifit(process.platform === 'linux')('should not change LC_ALL when setting invalid locale', async () => testLocale('asdfkl', lcAll, true)); +- ifit(process.platform === 'linux')('should not change LC_ALL when --lang is not set', async () => testLocale('', lcAll, true)); ++ ifit((process.platform === 'linux' || process.platform === 'freebsd') && !process.env.IS_ASAN)('should not change LC_ALL', async () => testLocale('fr', lcAll, true)); ++ ifit(process.platform === 'linux' || process.platform === 'freebsd')('should not change LC_ALL when setting invalid locale', async () => testLocale('asdfkl', lcAll, true)); ++ ifit(process.platform === 'linux' || process.platform === 'freebsd')('should not change LC_ALL when --lang is not set', async () => testLocale('', lcAll, true)); + }); + + describe('--remote-debugging-pipe switch', () => { +@@ -1560,12 +1560,12 @@ describe('font fallback', () => { + expect(fonts[0].familyName).to.equal('Arial'); + } else if (process.platform === 'darwin') { + expect(fonts[0].familyName).to.equal('Helvetica'); +- } else if (process.platform === 'linux') { ++ } else if (process.platform === 'linux' || process.platform === 'freebsd') { + expect(fonts[0].familyName).to.equal('DejaVu Sans'); + } // I think this depends on the distro? We don't specify a default. + }); + +- ifit(process.platform !== 'linux')('should fall back to Japanese font for sans-serif Japanese script', async function () { ++ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('should fall back to Japanese font for sans-serif Japanese script', async function () { + const html = ` + <html lang="ja-JP"> + <head> +@@ -1765,7 +1765,7 @@ describe('navigator.clipboard', () => { + }); + }); + +-ifdescribe((process.platform !== 'linux' || app.isUnityRunning()))('navigator.setAppBadge/clearAppBadge', () => { ++ifdescribe(((process.platform !== 'linux' && process.platform !== 'freebsd') || app.isUnityRunning()))('navigator.setAppBadge/clearAppBadge', () => { + let w: BrowserWindow; + before(async () => { + w = new BrowserWindow({ |