From b315eb83fd720576b374534be2251da23f830043 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 2 Aug 2017 10:34:33 +0900 Subject: [PATCH] spec: Suppress the test that destroys WebContents in event listener It is crashing when Electron is built in Debug mode. --- spec/api-web-contents-spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/api-web-contents-spec.js b/spec/api-web-contents-spec.js index ca35a231f4b9..d454c1ea6741 100644 --- a/spec/api-web-contents-spec.js +++ b/spec/api-web-contents-spec.js @@ -590,6 +590,12 @@ describe('webContents module', function () { }) describe('destroy()', () => { + // Destroying webContents in its event listener is going to crash when + // Electron is built in Debug mode. + if (process.platform !== 'darwin') { + return + } + let server before(function (done) {