Add spec for sending document.location over IPC

This commit is contained in:
Kevin Sawicki 2016-08-08 09:35:30 -07:00
parent 872fbe8ba0
commit 8b3aa4dbb4

View file

@ -294,6 +294,15 @@ describe('ipc module', function () {
})
ipcRenderer.send('message', currentDate)
})
it('can send objects with DOM class prototypes', function (done) {
ipcRenderer.once('message', function (event, value) {
assert.equal(value.protocol, 'file:')
assert.equal(value.hostname, '')
done()
})
ipcRenderer.send('message', document.location)
})
})
describe('ipc.sendSync', function () {