projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872fbe8
)
Add spec for sending document.location over IPC
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 8 Aug 2016 16:35:30 +0000
(09:35 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 8 Aug 2016 16:35:30 +0000
(09:35 -0700)
spec/api-ipc-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-ipc-spec.js
b/spec/api-ipc-spec.js
index
8a57fb0
..
8d08baf
100644
(file)
--- 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 () {