Add "id" property for BrowserWindow, fixes #218.

This commit is contained in:
Cheng Zhao 2014-05-22 09:51:32 +08:00
parent 764deab5c1
commit d49060d659
2 changed files with 13 additions and 4 deletions

View file

@ -90,6 +90,10 @@ describe 'browser-window module', ->
assert.equal after[0], size[0]
assert.equal after[1], size[1]
describe 'BrowserWindow.fromId(id)', ->
it 'returns the window with id', ->
assert.equal w.id, BrowserWindow.fromId(w.id).id
describe '"use-content-size" option', ->
it 'make window created with content size when used', ->
w.destroy()