openbsd-ports/devel/electron/patches/patch-electron_spec-main_api-app-spec_ts
espie c8a06fa5ba create electron as a separate port from chromium
as discussed with robert@ and sthen@, chromium is big, and electron
is mostly an independent port, so tieing up dpb twice is no fun,
even if electron is slightly smaller.

this is mostly a simplified carbon-copy of the www/chromium,electron port.
I still want to give it another look before switching to that one.
2020-03-10 11:16:32 +00:00

78 lines
3.1 KiB
Plaintext

$OpenBSD: patch-electron_spec-main_api-app-spec_ts,v 1.1.1.1 2020/03/10 11:16:33 espie Exp $
Index: electron/spec-main/api-app-spec.ts
--- electron/spec-main/api-app-spec.ts.orig
+++ electron/spec-main/api-app-spec.ts
@@ -109,7 +109,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 === 'openbsd') {
// Linux CI machines have no locale.
expectedLength = 0
}
@@ -508,7 +508,7 @@ describe('app module', () => {
describe('app.setBadgeCount', () => {
const platformIsNotSupported =
(process.platform === 'win32') ||
- (process.platform === 'linux' && !app.isUnityRunning())
+ (process.platform === 'openbsd' && !app.isUnityRunning())
const platformIsSupported = !platformIsNotSupported
const expectedBadgeCount = 42
@@ -562,7 +562,7 @@ describe('app module', () => {
]
before(function () {
- if (process.platform === 'linux' || process.mas) this.skip()
+ if (process.platform === 'openbsd' || process.mas) this.skip()
})
beforeEach(() => {
@@ -638,7 +638,7 @@ describe('app module', () => {
})
describe('accessibilitySupportEnabled property', () => {
- if (process.platform === 'linux') return
+ if (process.platform === 'openbsd') return
it('returns whether the Chrome has accessibility APIs enabled', () => {
expect(app.accessibilitySupportEnabled).to.be.a('boolean')
@@ -709,7 +709,7 @@ describe('app module', () => {
let w: BrowserWindow
before(function () {
- if (process.platform === 'linux') {
+ if (process.platform === 'openbsd') {
this.skip()
}
})
@@ -903,7 +903,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 === 'openbsd' && isCI) {
this.skip()
}
})
@@ -1057,7 +1057,7 @@ describe('app module', () => {
it('succeeds with complete GPUInfo', async () => {
const completeInfo = await getGPUInfo('complete')
- if (process.platform === 'linux') {
+ if (process.platform === 'openbsd') {
// For linux and macOS complete info is same as basic info
await verifyBasicGPUInfo(completeInfo)
const basicInfo = await getGPUInfo('basic')
@@ -1085,7 +1085,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 === 'openbsd' && (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.