Add test for #9387

This commit is contained in:
Thiago de Arruda 2017-05-15 09:17:07 -03:00
parent 6b5bd3b6ce
commit 5654ff0d43
5 changed files with 97 additions and 5 deletions

View file

@ -3,9 +3,9 @@
const {ipcRenderer} = require('electron')
window.ipcRenderer = ipcRenderer
window.setImmediate = setImmediate
window.require = require
if (location.protocol === 'file:') {
window.test = 'preload'
window.require = require
window.process = process
} else if (location.href !== 'about:blank') {
addEventListener('DOMContentLoaded', () => {