spec: BrowserWindow.setResizable should not change window size
This commit is contained in:
parent
1505dc207b
commit
5871428c83
1 changed files with 8 additions and 0 deletions
|
@ -129,6 +129,14 @@ describe 'browser-window module', ->
|
||||||
it 'returns the window with id', ->
|
it 'returns the window with id', ->
|
||||||
assert.equal w.id, BrowserWindow.fromId(w.id).id
|
assert.equal w.id, BrowserWindow.fromId(w.id).id
|
||||||
|
|
||||||
|
describe 'BrowserWindow.setResizable(resizable)', ->
|
||||||
|
it 'does not change window size for frameless window', ->
|
||||||
|
w.destroy()
|
||||||
|
w = new BrowserWindow(show: true, frame: false)
|
||||||
|
s = w.getSize()
|
||||||
|
w.setResizable not w.isResizable()
|
||||||
|
assert.deepEqual s, w.getSize()
|
||||||
|
|
||||||
describe '"use-content-size" option', ->
|
describe '"use-content-size" option', ->
|
||||||
it 'make window created with content size when used', ->
|
it 'make window created with content size when used', ->
|
||||||
w.destroy()
|
w.destroy()
|
||||||
|
|
Loading…
Reference in a new issue