summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-electron_spec_api-browser-window-spec.js
blob: 8e9e369723e2d12db043e5bd7dbb9934ec171e55 (plain) (blame)
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
--- electron/spec/api-browser-window-spec.js.orig	2019-09-11 17:30:11 UTC
+++ electron/spec/api-browser-window-spec.js
@@ -1219,7 +1219,7 @@ describe('BrowserWindow module', () => {
   describe('BrowserWindow.setOpacity(opacity)', () => {
     describe('Windows and Mac', () => {
       before(function () {
-        if (process.platform === 'linux') {
+        if (process.platform === 'linux' || process.platform === 'freebsd') {
           this.skip()
         }
       })
@@ -1251,7 +1251,7 @@ describe('BrowserWindow module', () => {
 
     describe('Linux', () => {
       before(function () {
-        if (process.platform !== 'linux') {
+        if (process.platform !== 'linux' && process.platform !== 'freebsd') {
           this.skip()
         }
       })
@@ -1351,7 +1351,7 @@ describe('BrowserWindow module', () => {
 
   describe('enableLargerThanScreen" option', () => {
     before(function () {
-      if (process.platform === 'linux') {
+      if (process.platform === 'linux' || process.platform === 'freebsd') {
         this.skip()
       }
     })
@@ -2028,7 +2028,7 @@ describe('BrowserWindow module', () => {
           expect(test.version).to.equal(remote.process.version)
           expect(test.versions).to.deep.equal(remote.process.versions)
 
-          if (process.platform === 'linux' && test.osSandbox) {
+          if ((process.platform === 'linux' || process.platform === 'freebsd') && test.osSandbox) {
             expect(test.creationTime).to.be.null()
             expect(test.systemMemoryInfo).to.be.null()
           } else {
@@ -2486,7 +2486,7 @@ describe('BrowserWindow module', () => {
       w.loadFile(path.join(fixtures, 'pages', 'visibilitychange.html'))
     })
     it('visibilityState changes when window is minimized', function (done) {
-      if (isCI && process.platform === 'linux') {
+      if (isCI && (process.platform === 'linux' || process.platform === 'freebsd')) {
         // FIXME(alexeykuzmin): Skip the test instead of marking it as passed.
         // afterEach hook won't be run if a test is skipped dynamically.
         // If afterEach isn't run current window won't be destroyed
@@ -2915,7 +2915,7 @@ describe('BrowserWindow module', () => {
     // - `.skip()` called in the 'beforeEach' hook prevents 'afterEach'
     //     hook from being called.
     // Not implemented on Linux.
-    if (process.platform === 'linux') {
+    if (process.platform === 'linux' || process.platform === 'freebsd') {
       return
     }