From 23203daf95e668729ecbbee42c3270bf7e45aedd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 4 Aug 2016 17:10:34 -0700 Subject: [PATCH] Non-resizable windows should only maximizable on Mac --- spec/api-browser-window-spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index d6cdc3c367fe..099b9f85e814 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -711,7 +711,10 @@ describe('browser-window module', function () { w.destroy() w = new BrowserWindow({show: false, resizable: false}) assert.equal(w.isResizable(), false) - assert.equal(w.isMaximizable(), true) + + if (process.platform === 'darwin') { + assert.equal(w.isMaximizable(), true) + } }) it('can be changed with setResizable method', function () {