|
1 | | ---- electron/spec/api-app-spec.ts.orig 2024-02-21 16:26:48 UTC |
| 1 | +--- electron/spec/api-app-spec.ts.orig 2024-02-27 20:12:14 UTC |
2 | 2 | +++ electron/spec/api-app-spec.ts |
3 | | -@@ -122,11 +122,11 @@ describe('app module', () => { |
| 3 | +@@ -123,11 +123,11 @@ describe('app module', () => { |
4 | 4 | }); |
5 | 5 |
|
6 | 6 | describe('app.getPreferredSystemLanguages()', () => { |
|
14 | 14 | const languages = app.getPreferredSystemLanguages(); |
15 | 15 | if (languages.length) { |
16 | 16 | expect(languages).to.not.include('C'); |
17 | | -@@ -189,7 +189,7 @@ describe('app module', () => { |
| 17 | +@@ -190,7 +190,7 @@ describe('app module', () => { |
18 | 18 | expect(code).to.equal(123, 'exit code should be 123, if you see this please tag @MarshallOfSound'); |
19 | 19 | }); |
20 | 20 |
|
|
23 | 23 | const electronPath = process.execPath; |
24 | 24 | const appPath = path.join(fixturesPath, 'api', 'singleton'); |
25 | 25 | appProcess = cp.spawn(electronPath, [appPath]); |
26 | | -@@ -443,7 +443,7 @@ describe('app module', () => { |
| 26 | +@@ -444,7 +444,7 @@ describe('app module', () => { |
27 | 27 | // let w = null |
28 | 28 |
|
29 | 29 | // before(function () { |
|
32 | 32 | // this.skip() |
33 | 33 | // } |
34 | 34 | // }) |
35 | | -@@ -550,7 +550,7 @@ describe('app module', () => { |
| 35 | +@@ -551,7 +551,7 @@ describe('app module', () => { |
36 | 36 | describe('app.badgeCount', () => { |
37 | 37 | const platformIsNotSupported = |
38 | 38 | (process.platform === 'win32') || |
|
41 | 41 |
|
42 | 42 | const expectedBadgeCount = 42; |
43 | 43 |
|
44 | | -@@ -594,7 +594,7 @@ describe('app module', () => { |
| 44 | +@@ -595,7 +595,7 @@ describe('app module', () => { |
45 | 45 | }); |
46 | 46 | }); |
47 | 47 |
|
|
50 | 50 | const isMac = process.platform === 'darwin'; |
51 | 51 | const isWin = process.platform === 'win32'; |
52 | 52 |
|
53 | | -@@ -974,7 +974,7 @@ describe('app module', () => { |
| 53 | +@@ -975,7 +975,7 @@ describe('app module', () => { |
54 | 54 | }); |
55 | 55 | }); |
56 | 56 |
|
|
59 | 59 | it('with properties', () => { |
60 | 60 | it('can set accessibility support enabled', () => { |
61 | 61 | expect(app.accessibilitySupportEnabled).to.eql(false); |
62 | | -@@ -1136,7 +1136,7 @@ describe('app module', () => { |
| 62 | +@@ -1137,7 +1137,7 @@ describe('app module', () => { |
63 | 63 | }); |
64 | 64 | }); |
65 | 65 |
|
|
68 | 68 | let w: BrowserWindow; |
69 | 69 |
|
70 | 70 | before(function () { |
71 | | -@@ -1271,7 +1271,7 @@ describe('app module', () => { |
| 71 | +@@ -1272,7 +1272,7 @@ describe('app module', () => { |
72 | 72 |
|
73 | 73 | describe('getApplicationNameForProtocol()', () => { |
74 | 74 | // TODO: Linux CI doesn't have registered http & https handlers |
|
77 | 77 | // We can't expect particular app names here, but these protocols should |
78 | 78 | // at least have _something_ registered. Except on our Linux CI |
79 | 79 | // environment apparently. |
80 | | -@@ -1289,7 +1289,7 @@ describe('app module', () => { |
| 80 | +@@ -1290,7 +1290,7 @@ describe('app module', () => { |
81 | 81 | }); |
82 | 82 | }); |
83 | 83 |
|
|
86 | 86 | it('returns promise rejection for a bogus protocol', async function () { |
87 | 87 | await expect( |
88 | 88 | app.getApplicationInfoForProtocol('bogus-protocol://') |
89 | | -@@ -1339,7 +1339,7 @@ describe('app module', () => { |
| 89 | +@@ -1340,7 +1340,7 @@ describe('app module', () => { |
90 | 90 | }); |
91 | 91 |
|
92 | 92 | // FIXME Get these specs running on Linux CI |
|
95 | 95 | const iconPath = path.join(__dirname, 'fixtures/assets/icon.ico'); |
96 | 96 | const sizes = { |
97 | 97 | small: 16, |
98 | | -@@ -1420,7 +1420,7 @@ describe('app module', () => { |
| 98 | +@@ -1421,7 +1421,7 @@ describe('app module', () => { |
99 | 99 | expect(entry.memory).to.have.property('privateBytes').that.is.greaterThan(0); |
100 | 100 | } |
101 | 101 |
|
|
104 | 104 | expect(entry.sandboxed).to.be.a('boolean'); |
105 | 105 | } |
106 | 106 |
|
107 | | -@@ -1446,7 +1446,7 @@ describe('app module', () => { |
| 107 | +@@ -1447,7 +1447,7 @@ describe('app module', () => { |
108 | 108 | }); |
109 | 109 |
|
110 | 110 | // FIXME https://github.com/electron/electron/issues/24224 |
|
113 | 113 | const appPath = path.join(fixturesPath, 'api', 'gpu-info.js'); |
114 | 114 |
|
115 | 115 | const getGPUInfo = async (type: string) => { |
116 | | -@@ -1495,7 +1495,7 @@ describe('app module', () => { |
| 116 | +@@ -1496,7 +1496,7 @@ describe('app module', () => { |
117 | 117 |
|
118 | 118 | it('succeeds with complete GPUInfo', async () => { |
119 | 119 | const completeInfo = await getGPUInfo('complete'); |
|
122 | 122 | // For linux and macOS complete info is same as basic info |
123 | 123 | await verifyBasicGPUInfo(completeInfo); |
124 | 124 | const basicInfo = await getGPUInfo('basic'); |
125 | | -@@ -1519,7 +1519,7 @@ describe('app module', () => { |
| 125 | +@@ -1520,7 +1520,7 @@ describe('app module', () => { |
126 | 126 | }); |
127 | 127 | }); |
128 | 128 |
|
|
0 commit comments