spec: Don't test window state events in CI on Linux
This commit is contained in:
parent
cef5f06ceb
commit
c19abed4fa
1 changed files with 4 additions and 0 deletions
|
@ -185,6 +185,7 @@ describe 'browser-window module', ->
|
||||||
w.loadUrl "file://#{fixtures}/pages/target-name.html"
|
w.loadUrl "file://#{fixtures}/pages/target-name.html"
|
||||||
|
|
||||||
describe 'maximize event', ->
|
describe 'maximize event', ->
|
||||||
|
return if isCI and process.platform is 'linux'
|
||||||
it 'emits when window is maximized', (done) ->
|
it 'emits when window is maximized', (done) ->
|
||||||
@timeout 10000
|
@timeout 10000
|
||||||
w.once 'maximize', -> done()
|
w.once 'maximize', -> done()
|
||||||
|
@ -192,6 +193,7 @@ describe 'browser-window module', ->
|
||||||
w.maximize()
|
w.maximize()
|
||||||
|
|
||||||
describe 'unmaximize event', ->
|
describe 'unmaximize event', ->
|
||||||
|
return if isCI and process.platform is 'linux'
|
||||||
it 'emits when window is unmaximized', (done) ->
|
it 'emits when window is unmaximized', (done) ->
|
||||||
@timeout 10000
|
@timeout 10000
|
||||||
w.once 'unmaximize', -> done()
|
w.once 'unmaximize', -> done()
|
||||||
|
@ -200,6 +202,7 @@ describe 'browser-window module', ->
|
||||||
w.unmaximize()
|
w.unmaximize()
|
||||||
|
|
||||||
describe 'minimize event', ->
|
describe 'minimize event', ->
|
||||||
|
return if isCI and process.platform is 'linux'
|
||||||
it 'emits when window is minimized', (done) ->
|
it 'emits when window is minimized', (done) ->
|
||||||
@timeout 10000
|
@timeout 10000
|
||||||
w.once 'minimize', -> done()
|
w.once 'minimize', -> done()
|
||||||
|
@ -207,6 +210,7 @@ describe 'browser-window module', ->
|
||||||
w.minimize()
|
w.minimize()
|
||||||
|
|
||||||
describe 'restore event', ->
|
describe 'restore event', ->
|
||||||
|
return if isCI and process.platform is 'linux'
|
||||||
it 'emits when window is restored', (done) ->
|
it 'emits when window is restored', (done) ->
|
||||||
@timeout 10000
|
@timeout 10000
|
||||||
w.once 'restore', -> done()
|
w.once 'restore', -> done()
|
||||||
|
|
Loading…
Reference in a new issue