🎨
This commit is contained in:
parent
558ee08be9
commit
625bfe53f7
2 changed files with 2 additions and 2 deletions
|
@ -1256,7 +1256,7 @@ describe('browser-window module', function () {
|
|||
})
|
||||
|
||||
it('works with result objects that have DOM class prototypes', function (done) {
|
||||
w.webContents.executeJavaScript('document.location', function (result) {
|
||||
w.webContents.executeJavaScript('document.location', function (result) {
|
||||
assert.equal(result.origin, server.url)
|
||||
assert.equal(result.protocol, 'http:')
|
||||
done()
|
||||
|
|
|
@ -323,7 +323,7 @@ describe('ipc module', function () {
|
|||
assert.equal(value.protocol, 'file:')
|
||||
assert.equal(value.hostname, '')
|
||||
done()
|
||||
})
|
||||
})
|
||||
ipcRenderer.send('message', document.location)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue