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:
Thiago de Arruda 2017-03-21 10:48:36 -03:00
parent 3a97cfc359
commit 5ee6205c0a
2 changed files with 19 additions and 6 deletions

View file

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