remote: return webcontents instance from cache
This commit is contained in:
parent
25156dbd53
commit
0d77fd4a2c
2 changed files with 15 additions and 0 deletions
|
@ -90,6 +90,14 @@ describe('ipc module', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('remote webContents', function() {
|
||||
it('can return same object with different getters', function() {
|
||||
var contents1 = remote.getCurrentWindow().webContents;
|
||||
var contents2 = remote.getCurrentWebContents();
|
||||
assert(contents1 == contents2);
|
||||
});
|
||||
});
|
||||
|
||||
describe('ipc.sender.send', function() {
|
||||
it('should work when sending an object containing id property', function(done) {
|
||||
var obj = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue