diff options
Diffstat (limited to 'devel/electron6/files/patch-electron_spec-main_api-app-spec.ts')
-rw-r--r-- | devel/electron6/files/patch-electron_spec-main_api-app-spec.ts | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/devel/electron6/files/patch-electron_spec-main_api-app-spec.ts b/devel/electron6/files/patch-electron_spec-main_api-app-spec.ts new file mode 100644 index 000000000000..f2fe356b3ac3 --- /dev/null +++ b/devel/electron6/files/patch-electron_spec-main_api-app-spec.ts @@ -0,0 +1,83 @@ +--- electron/spec-main/api-app-spec.ts.orig 2019-12-17 00:40:10 UTC ++++ electron/spec-main/api-app-spec.ts +@@ -112,7 +112,7 @@ describe('app module', () => { + describe('app.getLocaleCountryCode()', () => { + it('should be empty or have length of two', () => { + let expectedLength = 2 +- if (isCI && process.platform === 'linux') { ++ if (isCI && (process.platform === 'linux' || process.platform === 'freebsd')) { + // Linux CI machines have no locale. + expectedLength = 0 + } +@@ -172,7 +172,7 @@ describe('app module', () => { + }) + + it('exits gracefully', async function () { +- if (!['darwin', 'linux'].includes(process.platform)) { ++ if (!['darwin', 'linux', 'freebsd'].includes(process.platform)) { + this.skip() + return + } +@@ -515,7 +515,7 @@ describe('app module', () => { + describe('app.setBadgeCount', () => { + const platformIsNotSupported = + (process.platform === 'win32') || +- (process.platform === 'linux' && !app.isUnityRunning()) ++ ((process.platform === 'linux' || process.platform === 'freebsd') && !app.isUnityRunning()) + const platformIsSupported = !platformIsNotSupported + + const expectedBadgeCount = 42 +@@ -569,7 +569,7 @@ describe('app module', () => { + ] + + before(function () { +- if (process.platform === 'linux' || process.mas) this.skip() ++ if (process.platform === 'linux' || process.platform === 'freebsd' || process.mas) this.skip() + }) + + beforeEach(() => { +@@ -645,7 +645,7 @@ describe('app module', () => { + }) + + describe('accessibilitySupportEnabled property', () => { +- if (process.platform === 'linux') return ++ if (process.platform === 'linux' || process.platform === 'freebsd') return + + it('returns whether the Chrome has accessibility APIs enabled', () => { + expect(app.accessibilitySupportEnabled).to.be.a('boolean') +@@ -716,7 +716,7 @@ describe('app module', () => { + let w: BrowserWindow + + before(function () { +- if (process.platform === 'linux') { ++ if (process.platform === 'linux' || process.platform === 'freebsd') { + this.skip() + } + }) +@@ -910,7 +910,7 @@ describe('app module', () => { + // doesn't affect nested `describe`s. + beforeEach(function () { + // FIXME Get these specs running on Linux CI +- if (process.platform === 'linux' && isCI) { ++ if ((process.platform === 'linux' || process.platform === 'freebsd') && isCI) { + this.skip() + } + }) +@@ -1067,7 +1067,7 @@ describe('app module', () => { + + it('succeeds with complete GPUInfo', async () => { + const completeInfo = await getGPUInfo('complete') +- if (process.platform === 'linux') { ++ if (process.platform === 'linux' || process.platform === 'freebsd') { + // For linux and macOS complete info is same as basic info + await verifyBasicGPUInfo(completeInfo) + const basicInfo = await getGPUInfo('basic') +@@ -1095,7 +1095,7 @@ describe('app module', () => { + const socketPath = process.platform === 'win32' ? '\\\\.\\pipe\\electron-mixed-sandbox' : '/tmp/electron-mixed-sandbox' + + beforeEach(function (done) { +- if (process.platform === 'linux' && (process.arch === 'arm64' || process.arch === 'arm')) { ++ if ((process.platform === 'linux' || process.platform === 'freebsd') && (process.arch === 'arm64' || process.arch === 'arm')) { + // Our ARM tests are run on VSTS rather than CircleCI, and the Docker + // setup on VSTS disallows syscalls that Chrome requires for setting up + // sandboxing. |