Add spec for sending document.location over IPC
This commit is contained in:
parent
872fbe8ba0
commit
8b3aa4dbb4
1 changed files with 9 additions and 0 deletions
|
@ -294,6 +294,15 @@ describe('ipc module', function () {
|
||||||
})
|
})
|
||||||
ipcRenderer.send('message', currentDate)
|
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 () {
|
describe('ipc.sendSync', function () {
|
||||||
|
|
Loading…
Reference in a new issue