From d8366115f540c3114199bad24a5f80792b087187 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 9 Jan 2017 10:00:52 -0800 Subject: [PATCH] Add spec for resizable frameless window --- spec/api-browser-window-spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index eabd9209e8..f19ff06b11 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1258,6 +1258,18 @@ describe('BrowserWindow module', function () { w.setResizable(true) assert.equal(w.isResizable(), true) }) + + it('works for a frameless window', () => { + w.destroy() + w = new BrowserWindow({show: false, frame: false}) + assert.equal(w.isResizable(), true) + + if (process.platform === 'win32') { + w.destroy() + w = new BrowserWindow({show: false, thickFrame: false}) + assert.equal(w.isResizable(), false) + } + }) }) describe('loading main frame state', function () {