]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: Remove the will-navigate test
authorCheng Zhao <zcbenz@gmail.com>
Thu, 24 Sep 2015 04:20:29 +0000 (12:20 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 24 Sep 2015 04:20:29 +0000 (12:20 +0800)
It is unreliable to test in renderer process, remove it for now.

spec/api-browser-window-spec.coffee

index de713a6545c67d3038331d3906508a995db63a5c..2e4a66b92b9aabc2807757e5e00581f280678179 100644 (file)
@@ -294,16 +294,6 @@ describe 'browser-window module', ->
       w.show()
       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', ->
     it 'subscribes frame updates', (done) ->
       w.loadUrl "file://#{fixtures}/api/blank.html"