override: intialise BrowserWindowProxy.closed

This commit is contained in:
Robo 2015-08-05 13:33:08 +05:30
parent 488a69d461
commit 6b8d4a43a3
2 changed files with 2 additions and 0 deletions

View file

@ -37,6 +37,7 @@ describe 'chromium feature', ->
describe 'window.open', ->
it 'returns a BrowserWindowProxy object', ->
b = window.open 'about:blank', 'test', 'show=no'
assert.equal b.closed, false
assert.equal b.constructor.name, 'BrowserWindowProxy'
b.close()