test: fix contextIsolation value for later added test (#27998)

This commit is contained in:
Cheng Zhao 2021-03-05 01:22:32 +09:00 committed by GitHub
parent 9b93750e5e
commit 0b042d3b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,13 @@
const { app, BrowserWindow } = require('electron');
app.once('ready', () => {
const w = new BrowserWindow({ show: false, webPreferences: { nodeIntegration: true } });
const w = new BrowserWindow({
show: false,
webPreferences: {
contextIsolation: false,
nodeIntegration: true
}
});
w.webContents.once('crashed', () => {
app.quit();
});