diff --git a/spec/api-ipc-spec.js b/spec/api-ipc-spec.js index 8a57fb0ab2..8d08baf0bc 100644 --- a/spec/api-ipc-spec.js +++ b/spec/api-ipc-spec.js @@ -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 () {