describe 'BrowserWindow.setSize(width, height)', ->
it 'sets the window size', ->
- # No way to reliably set size when window has not been shown on Linux.
- return if process.platform is 'linux'
-
size = [400, 400]
w.setSize size[0], size[1]
after = w.getSize()
assert.equal after[1], size[1]
it 'can set the window larger than screen', ->
- # No way to reliably set size when window has not been shown on Linux.
- return if process.platform is 'linux'
-
size = require('screen').getPrimaryDisplay().size
size.width += 100
size.height += 100
describe 'BrowserWindow.setContentSize(width, height)', ->
it 'sets the content size', ->
- # No way to reliably set size when window has not been shown on Linux.
- return if process.platform is 'linux'
-
size = [400, 400]
w.setContentSize size[0], size[1]
after = w.getContentSize()