else
false
+# Override default window.close, see:
+# https://github.com/atom/atom-shell/issues/70
+window.close = ->
+ require('remote').getCurrentWindow().close()
+
# Override default window.open.
window.open = (url, name, features) ->
options = {}
w.loadUrl 'file://' + path.join(fixtures, 'api', 'beforeunload-false.html')
describe 'window.close()', ->
- xit 'should emit unload handler', (done) ->
+ it 'should emit unload handler', (done) ->
w = new BrowserWindow(show: false)
w.on 'closed', ->
test = path.join(fixtures, 'api', 'close')