BrowserWindow.show() should not focus window, fixes #609.

This commit is contained in:
Cheng Zhao 2014-09-08 15:28:34 +08:00
parent add4e3c6f5
commit 1199224086
2 changed files with 6 additions and 1 deletions

View file

@ -56,6 +56,11 @@ describe 'browser-window module', ->
done()
w.loadUrl 'about:blank'
describe 'BrowserWindow.show()', ->
it 'should not focus window', ->
w.show()
assert !w.isFocused()
describe 'BrowserWindow.focus()', ->
it 'does not make the window become visible', ->
assert.equal w.isVisible(), false