spec: Remove the will-navigate test

It is unreliable to test in renderer process, remove it for now.
This commit is contained in:
Cheng Zhao 2015-09-24 12:20:29 +08:00
parent 269f70c12a
commit 576257470b

View file

@ -294,16 +294,6 @@ describe 'browser-window module', ->
w.show() w.show()
w.minimize() w.minimize()
describe 'will-navigate event', ->
@timeout 10000
it 'emits when user starts a navigation', (done) ->
url = "file://#{fixtures}/pages/will-navigate.html"
w.webContents.on 'will-navigate', (event, u) ->
event.preventDefault()
assert.equal u, url
done()
w.loadUrl url
xdescribe 'beginFrameSubscription method', -> xdescribe 'beginFrameSubscription method', ->
it 'subscribes frame updates', (done) -> it 'subscribes frame updates', (done) ->
w.loadUrl "file://#{fixtures}/api/blank.html" w.loadUrl "file://#{fixtures}/api/blank.html"