]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: Don't test window state events in CI on Linux
authorCheng Zhao <zcbenz@gmail.com>
Tue, 25 Nov 2014 07:17:48 +0000 (15:17 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 25 Nov 2014 07:17:48 +0000 (15:17 +0800)
spec/api-browser-window-spec.coffee

index 66847eb4ee9524a14db505fa0bb1bcc5281353ab..09e0542c90550edc0415b6f60f032cd41cd447ff 100644 (file)
@@ -185,6 +185,7 @@ describe 'browser-window module', ->
       w.loadUrl "file://#{fixtures}/pages/target-name.html"
 
   describe 'maximize event', ->
+    return if isCI and process.platform is 'linux'
     it 'emits when window is maximized', (done) ->
       @timeout 10000
       w.once 'maximize', -> done()
@@ -192,6 +193,7 @@ describe 'browser-window module', ->
       w.maximize()
 
   describe 'unmaximize event', ->
+    return if isCI and process.platform is 'linux'
     it 'emits when window is unmaximized', (done) ->
       @timeout 10000
       w.once 'unmaximize', -> done()
@@ -200,6 +202,7 @@ describe 'browser-window module', ->
       w.unmaximize()
 
   describe 'minimize event', ->
+    return if isCI and process.platform is 'linux'
     it 'emits when window is minimized', (done) ->
       @timeout 10000
       w.once 'minimize', -> done()
@@ -207,6 +210,7 @@ describe 'browser-window module', ->
       w.minimize()
 
   describe 'restore event', ->
+    return if isCI and process.platform is 'linux'
     it 'emits when window is restored', (done) ->
       @timeout 10000
       w.once 'restore', -> done()