summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-electron_spec_api-screen-spec.js
blob: 6c4979cb0fecdb8f839bd0d7d34c9e78542f3567 (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
--- electron/spec/api-screen-spec.js.orig	2019-09-11 17:30:11 UTC
+++ electron/spec/api-screen-spec.js
@@ -17,7 +17,7 @@ describe('screen module', () => {
     })
 
     it('has the correct non-object properties', function () {
-      if (process.platform === 'linux') this.skip()
+      if (process.platform === 'linux' || process.platform === 'freebsd') this.skip()
       const display = screen.getPrimaryDisplay()
 
       expect(display).to.have.a.property('scaleFactor').that.is.a('number')
@@ -33,7 +33,7 @@ describe('screen module', () => {
     })
 
     it('has a size object property', function () {
-      if (process.platform === 'linux') this.skip()
+      if (process.platform === 'linux' || process.platform === 'freebsd') this.skip()
       const display = screen.getPrimaryDisplay()
 
       expect(display).to.have.a.property('size').that.is.an('object')
@@ -43,7 +43,7 @@ describe('screen module', () => {
     })
 
     it('has a workAreaSize object property', function () {
-      if (process.platform === 'linux') this.skip()
+      if (process.platform === 'linux' || process.platform === 'freebsd') this.skip()
       const display = screen.getPrimaryDisplay()
 
       expect(display).to.have.a.property('workAreaSize').that.is.an('object')
@@ -53,7 +53,7 @@ describe('screen module', () => {
     })
 
     it('has a bounds object property', function () {
-      if (process.platform === 'linux') this.skip()
+      if (process.platform === 'linux' || process.platform === 'freebsd') this.skip()
       const display = screen.getPrimaryDisplay()
 
       expect(display).to.have.a.property('bounds').that.is.an('object')