diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index d378850d88e0..bb8966d7dbfc 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1144,13 +1144,16 @@ describe('BrowserWindow module', function () { w.loadURL('file://' + path.join(fixtures, 'api', 'sandbox.html?window-events')) }) - it('works for web contents events', function (done) { + it('works for stop events', function (done) { waitForEvents(w.webContents, [ 'did-navigate', 'did-fail-load', 'did-stop-loading' ], done) w.loadURL('file://' + path.join(fixtures, 'api', 'sandbox.html?webcontents-stop')) + }) + + it('works for web contents events', function (done) { waitForEvents(w.webContents, [ 'did-finish-load', 'did-frame-finish-load',