spec: Suppress the test that destroys WebContents in event listener

It is crashing when Electron is built in Debug mode.
This commit is contained in:
Cheng Zhao 2017-08-02 10:34:33 +09:00
parent bd697275c2
commit b315eb83fd

View file

@ -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) {