From 8eb5e651a2b6ab5c9400d9c367f78644c192b7f5 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 10 Jun 2015 12:52:04 +0800 Subject: [PATCH] Suppress some tests on CI The Mac runner of Travis CI is too flacky. --- 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 ea3e06c9..390f29bf 100644 --- a/spec/api-browser-window-spec.coffee +++ b/spec/api-browser-window-spec.coffee @@ -188,6 +188,7 @@ describe 'browser-window module', -> w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-empty-string.html') describe 'new-window event', -> + return if isCI and process.platform is 'darwin' it 'emits when window.open is called', (done) -> w.webContents.once 'new-window', (e, url, frameName) -> e.preventDefault() @@ -230,6 +231,7 @@ describe 'browser-window module', -> w.minimize() describe 'will-navigate event', -> + return if isCI and process.platform is 'darwin' it 'emits when user starts a navigation', (done) -> @timeout 10000 w.webContents.on 'will-navigate', (event, url) -> @@ -239,6 +241,7 @@ describe 'browser-window module', -> w.loadUrl "file://#{fixtures}/pages/will-navigate.html" describe 'dom-ready event', -> + return if isCI and process.platform is 'darwin' it 'emits when document is loaded', (done) -> ipc = remote.require 'ipc' server = http.createServer (req, res) -> -- 2.43.0