spec: Don't test BrowserWindow.show() in CI

Some environments can not handle focusing very well.
This commit is contained in:
Cheng Zhao 2014-10-17 23:10:10 +08:00
parent 19c8864c32
commit cbe52c58ac

View file

@ -5,6 +5,8 @@ remote = require 'remote'
BrowserWindow = remote.require 'browser-window'
isCI = remote.process.argv[1] == '--ci'
describe 'browser-window module', ->
fixtures = path.resolve __dirname, 'fixtures'
@ -58,6 +60,7 @@ describe 'browser-window module', ->
describe 'BrowserWindow.show()', ->
it 'should focus on window', ->
return if isCI
w.show()
assert w.isFocused()