Add test
This commit is contained in:
parent
ab693ca571
commit
4027d04662
1 changed files with 8 additions and 0 deletions
|
@ -322,3 +322,11 @@ describe 'browser-window module', ->
|
||||||
done()
|
done()
|
||||||
|
|
||||||
w.loadURL "file://#{fixtures}/pages/save_page/index.html"
|
w.loadURL "file://#{fixtures}/pages/save_page/index.html"
|
||||||
|
|
||||||
|
describe 'BrowserWindow options argument is optional', ->
|
||||||
|
it 'should create a window with default size (800x600)', ->
|
||||||
|
w.destroy()
|
||||||
|
w = new BrowserWindow()
|
||||||
|
size = w.getSize()
|
||||||
|
assert.equal size[0], 800
|
||||||
|
assert.equal size[1], 600
|
||||||
|
|
Loading…
Reference in a new issue