Merge pull request #5972 from electron/non-writeable-guest-id

Make guestId on BrowserWindowProxy non-writeable
This commit is contained in:
Cheng Zhao 2016-06-10 12:02:07 +00:00 committed by GitHub
commit 4373dc1eac
2 changed files with 13 additions and 1 deletions

View file

@ -164,6 +164,12 @@ describe('chromium feature', function () {
var b = window.open('about:blank', '', 'show=no')
assert.equal(b.closed, false)
assert.equal(b.constructor.name, 'BrowserWindowProxy')
// Check that guestId is not writeable
assert(b.guestId)
b.guestId = 'anotherValue'
assert.notEqual(b.guestId, 'anoterValue')
b.close()
})