aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts')
-rw-r--r--devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts74
1 files changed, 74 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts b/devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts
new file mode 100644
index 000000000000..2b743a4c10c8
--- /dev/null
+++ b/devel/electron13/files/patch-electron_spec-main_api-browser-window-spec.ts
@@ -0,0 +1,74 @@
+--- electron/spec-main/api-browser-window-spec.ts.orig 2021-10-27 21:25:28 UTC
++++ electron/spec-main/api-browser-window-spec.ts
+@@ -58,7 +58,7 @@ describe('BrowserWindow module', () => {
+ }).not.to.throw();
+ });
+
+- ifit(process.platform === 'linux')('does not crash when setting large window icons', async () => {
++ ifit(process.platform === 'linux' || process.platform === 'freebsd')('does not crash when setting large window icons', async () => {
+ const appPath = path.join(__dirname, 'spec-main', 'fixtures', 'apps', 'xwindow-icon');
+ const appProcess = childProcess.spawn(process.execPath, [appPath]);
+ await new Promise((resolve) => { appProcess.once('exit', resolve); });
+@@ -1042,7 +1042,7 @@ describe('BrowserWindow module', () => {
+ });
+ });
+
+- ifdescribe(process.platform !== 'linux')('Maximized state', () => {
++ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('Maximized state', () => {
+ it('checks normal bounds when maximized', async () => {
+ const bounds = w.getBounds();
+ const maximize = emittedOnce(w, 'maximize');
+@@ -1121,7 +1121,7 @@ describe('BrowserWindow module', () => {
+ });
+ });
+
+- ifdescribe(process.platform !== 'linux')('Minimized state', () => {
++ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('Minimized state', () => {
+ it('checks normal bounds when minimized', async () => {
+ const bounds = w.getBounds();
+ const minimize = emittedOnce(w, 'minimize');
+@@ -1797,7 +1797,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);
+@@ -1823,7 +1823,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);
+@@ -2728,7 +2728,7 @@ describe('BrowserWindow module', () => {
+ expect(test.versions).to.deep.equal(process.versions);
+ expect(test.contextId).to.be.a('string');
+
+- 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 {
+@@ -3333,7 +3333,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', async () => {
+ const w = new BrowserWindow({ show: false });
+@@ -3911,7 +3911,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);
+