spec: BrowserWindow.showInactive()

This commit is contained in:
Cheng Zhao 2014-10-17 22:55:09 +08:00
parent 141894aacd
commit 19c8864c32

View file

@ -57,8 +57,13 @@ describe 'browser-window module', ->
w.loadUrl 'about:blank'
describe 'BrowserWindow.show()', ->
it 'should not focus window', ->
it 'should focus on window', ->
w.show()
assert w.isFocused()
describe 'BrowserWindow.showInactive()', ->
it 'should not focus on window', ->
w.showInactive()
assert !w.isFocused()
describe 'BrowserWindow.focus()', ->