From 62594780e0eee653ecc5e7ed65c280087c7056a6 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Thu, 23 Nov 2017 21:24:50 +0100 Subject: [PATCH] run the new test only on windows --- spec/api-browser-window-spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index b5b7543952f..55ca6c66c77 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -2178,6 +2178,11 @@ describe('BrowserWindow module', () => { w.setFullScreenable(false) assert.equal(w.isMaximizable(), true) }) + }) + + describe('maximizable state (Windows only)', () => { + // Only implemented on windows. + if (process.platform !== 'win32') return it('is set to false when resizable state is set to false', () => { w.setResizable(false)