From: Cheng Zhao Date: Sat, 25 Apr 2015 02:45:16 +0000 (+0800) Subject: Increase timeout for some tests X-Git-Tag: v0.25.2~24 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=81783b255e371f59a12253937914223d9824724f;p=electron.git Increase timeout for some tests --- diff --git a/spec/api-browser-window-spec.coffee b/spec/api-browser-window-spec.coffee index c723246d..fce7eeb7 100644 --- a/spec/api-browser-window-spec.coffee +++ b/spec/api-browser-window-spec.coffee @@ -216,6 +216,7 @@ describe 'browser-window module', -> describe 'will-navigate event', -> it 'emits when user starts a navigation', (done) -> + @timeout 10000 w.webContents.on 'will-navigate', (event, url) -> event.preventDefault() assert.equal url, 'https://www.github.com/' diff --git a/spec/api-ipc-spec.coffee b/spec/api-ipc-spec.coffee index c63997af..d7f77b14 100644 --- a/spec/api-ipc-spec.coffee +++ b/spec/api-ipc-spec.coffee @@ -66,6 +66,7 @@ describe 'ipc module', -> assert.equal msg, 'test' it 'does not crash when reply is not sent and browser is destroyed', (done) -> + @timeout 10000 w = new BrowserWindow(show: false) remote.require('ipc').once 'send-sync-message', (event) -> event.returnValue = null