From cbe52c58ac798a085ee179fdf692938c2d34918c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 17 Oct 2014 23:10:10 +0800 Subject: [PATCH] spec: Don't test BrowserWindow.show() in CI Some environments can not handle focusing very well. --- spec/api-browser-window-spec.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/api-browser-window-spec.coffee b/spec/api-browser-window-spec.coffee index ce1a9da1..fa3b69df 100644 --- a/spec/api-browser-window-spec.coffee +++ b/spec/api-browser-window-spec.coffee @@ -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() -- 2.43.0