spec: BrowserWindow.setResizable should not change window size

This commit is contained in:
Cheng Zhao 2015-08-05 14:20:08 +08:00
parent 1505dc207b
commit 5871428c83

View file

@ -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()