remote: return webcontents instance from cache

This commit is contained in:
Robo 2016-02-17 13:27:46 +05:30
parent 25156dbd53
commit 0d77fd4a2c
2 changed files with 15 additions and 0 deletions

View file

@ -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 = {