From 5bbb41415aeea5e80d6ec97adcef8e4791d0ab3d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 19 Jul 2013 10:47:00 +0800 Subject: [PATCH] Improve spec window's default behavior. --- spec/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/main.js b/spec/main.js index 41c2945f684..b3b4b4dac0e 100644 --- a/spec/main.js +++ b/spec/main.js @@ -3,6 +3,14 @@ var BrowserWindow = require('browser-window'); var window = null; +process.on('uncaughtException', function() { + window.openDevTools(); +}); + +app.on('window-all-closed', function() { + app.terminate(); +}); + app.on('finish-launching', function() { window = new BrowserWindow({ title: 'atom-shell tests',