22 lines
453 B
JavaScript
22 lines
453 B
JavaScript
var app = require('app');
|
|
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',
|
|
width: 800,
|
|
height: 600
|
|
});
|
|
window.loadUrl('file://' + __dirname + '/index.html');
|
|
window.focus();
|
|
});
|