Run the crash reporter specs with sandbox option.
- Create a function that accepts BrowserWindow options and generates a suite that contains the renderer-specific tests. - Run the function twice to execute the tests with and without sandbox option.
This commit is contained in:
parent
3a97cfc359
commit
5ee6205c0a
2 changed files with 19 additions and 6 deletions
2
spec/fixtures/module/preload-sandbox.js
vendored
2
spec/fixtures/module/preload-sandbox.js
vendored
|
@ -1,6 +1,8 @@
|
|||
(function () {
|
||||
const {setImmediate} = require('timers')
|
||||
const {ipcRenderer} = require('electron')
|
||||
window.ipcRenderer = ipcRenderer
|
||||
window.setImmediate = setImmediate
|
||||
if (location.protocol === 'file:') {
|
||||
window.test = 'preload'
|
||||
window.require = require
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue