Add script to run specs in CI, fixes #61.
This commit is contained in:
parent
0cd3f3cc40
commit
d160da7752
4 changed files with 47 additions and 2 deletions
12
spec/main.js
12
spec/main.js
|
@ -10,6 +10,18 @@ ipc.on('message', function() {
|
|||
ipc.send.apply(this, arguments);
|
||||
});
|
||||
|
||||
ipc.on('console.log', function(pid, rid, args) {
|
||||
console.log.apply(console, args);
|
||||
});
|
||||
|
||||
ipc.on('console.error', function(pid, rid, args) {
|
||||
console.log.apply(console, args);
|
||||
});
|
||||
|
||||
ipc.on('process.exit', function(pid, rid, code) {
|
||||
process.exit(code);
|
||||
});
|
||||
|
||||
process.on('uncaughtException', function() {
|
||||
window.openDevTools();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue