]> khamidou — GitHub mirrors - electron.git/commitdiff
Suppress some tests on CI
authorCheng Zhao <zcbenz@gmail.com>
Wed, 10 Jun 2015 04:52:04 +0000 (12:52 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 10 Jun 2015 04:52:52 +0000 (12:52 +0800)
The Mac runner of Travis CI is too flacky.

spec/api-browser-window-spec.coffee

index ea3e06c9d4061c2566ff3ddefaac5931546650da..390f29bf2f0cd32234a7e0a4d13307314aba8e35 100644 (file)
@@ -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) ->