spec: Suppress beginFrameSubscription on CI
This commit is contained in:
parent
7807d878d2
commit
a567d7a0b6
2 changed files with 5 additions and 6 deletions
|
@ -305,13 +305,12 @@ describe 'browser-window module', ->
|
|||
w.loadUrl url
|
||||
|
||||
describe 'beginFrameSubscription method', ->
|
||||
@timeout 10000
|
||||
# It is not very reliable on Travis CI.
|
||||
return if process.env.TRAVIS is 'true'
|
||||
|
||||
it 'subscribes frame updates', (done) ->
|
||||
called = false
|
||||
w.loadUrl "file://#{fixtures}/api/blank.html"
|
||||
w.webContents.beginFrameSubscription (data) ->
|
||||
return if called
|
||||
called = true
|
||||
assert.notEqual data.length, 0
|
||||
w.webContents.endFrameSubscription()
|
||||
done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue