1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
--- electron/spec-main/api-browser-window-spec.ts.orig 2020-06-01 19:28:27 UTC
+++ electron/spec-main/api-browser-window-spec.ts
@@ -878,7 +878,7 @@ describe('BrowserWindow module', () => {
w.setPosition(pos[0], pos[1])
})
})
- ifdescribe(process.platform !== 'linux')(`Maximized state`, () => {
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')(`Maximized state`, () => {
it(`checks normal bounds when maximized`, (done) => {
const bounds = w.getBounds()
w.once('maximize', () => {
@@ -901,7 +901,7 @@ describe('BrowserWindow module', () => {
w.maximize()
})
})
- ifdescribe(process.platform !== 'linux')(`Minimized state`, () => {
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')(`Minimized state`, () => {
it(`checks normal bounds when minimized`, (done) => {
const bounds = w.getBounds()
w.once('minimize', () => {
@@ -1368,7 +1368,7 @@ describe('BrowserWindow module', () => {
describe('BrowserWindow.setOpacity(opacity)', () => {
afterEach(closeAllWindows)
- ifdescribe(process.platform !== 'linux')(('Windows and Mac'), () => {
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')(('Windows and Mac'), () => {
it('make window with initial opacity', () => {
const w = new BrowserWindow({ show: false, opacity: 0.5 })
expect(w.getOpacity()).to.equal(0.5)
@@ -1394,7 +1394,7 @@ describe('BrowserWindow module', () => {
})
})
- ifdescribe(process.platform === 'linux')(('Linux'), () => {
+ ifdescribe(process.platform === 'linux' || process.platform === 'freebsd')(('Linux'), () => {
it('sets 1 regardless of parameter', () => {
const w = new BrowserWindow({ show: false })
w.setOpacity(0)
@@ -2189,7 +2189,7 @@ describe('BrowserWindow module', () => {
expect(test.version).to.equal(process.version)
expect(test.versions).to.deep.equal(process.versions)
- if (process.platform === 'linux' && test.osSandbox) {
+ if ((process.platform === 'linux' || process.platform === 'freebsd') && test.osSandbox) {
expect(test.creationTime).to.be.null('creation time')
expect(test.systemMemoryInfo).to.be.null('system memory info')
} else {
@@ -2592,7 +2592,7 @@ describe('BrowserWindow module', () => {
expect(visibilityState).to.equal('visible')
})
- ifit(!(isCI && process.platform === 'linux'))('visibilityState changes when window is minimized', async () => {
+ ifit(!(isCI && (process.platform === 'linux' || process.platform === 'freebsd')))('visibilityState changes when window is minimized', async () => {
const w = new BrowserWindow({
width: 100,
height: 100,
@@ -2692,7 +2692,7 @@ describe('BrowserWindow module', () => {
})
})
- ifdescribe(process.platform !== 'linux')('max/minimize events', () => {
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('max/minimize events', () => {
afterEach(closeAllWindows)
it('emits an event when window is maximized', (done) => {
const w = new BrowserWindow({show: false})
@@ -3232,7 +3232,7 @@ describe('BrowserWindow module', () => {
})
})
- ifdescribe(process.platform !== 'linux')('window states (excluding Linux)', () => {
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('window states (excluding Linux)', () => {
// Not implemented on Linux.
afterEach(closeAllWindows)
|