Add failing spec
This commit is contained in:
parent
cdfbeb1a0a
commit
41a0a3fff2
1 changed files with 10 additions and 0 deletions
|
@ -711,6 +711,7 @@ describe('browser-window module', function () {
|
|||
w.destroy()
|
||||
w = new BrowserWindow({show: false, resizable: false})
|
||||
assert.equal(w.isResizable(), false)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
})
|
||||
|
||||
it('can be changed with setResizable method', function () {
|
||||
|
@ -819,6 +820,15 @@ describe('browser-window module', function () {
|
|||
assert.equal(w.isMaximizable(), false)
|
||||
w.setClosable(false)
|
||||
assert.equal(w.isMaximizable(), false)
|
||||
|
||||
w.setMaximizable(true)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
w.setClosable(true)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
w.setFullScreenable(false)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
w.setResizable(false)
|
||||
assert.equal(w.isMaximizable(), true)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue