electron/spec/main.js
2013-07-19 10:47:00 +08:00

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();
});