Add spec for resizable frameless window
This commit is contained in:
parent
e5aad9857d
commit
d8366115f5
1 changed files with 12 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue