projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd35430
)
Quit when get uncaughtException in specs.
author
Cheng Zhao
<zcbenz@gmail.com>
Sun, 25 May 2014 08:16:29 +0000
(16:16 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Sun, 25 May 2014 08:16:29 +0000
(16:16 +0800)
spec/static/main.js
patch
|
blob
|
history
diff --git
a/spec/static/main.js
b/spec/static/main.js
index
af22bb5
..
cafc397
100644
(file)
--- a/
spec/static/main.js
+++ b/
spec/static/main.js
@@
-32,10
+32,13
@@
ipc.on('echo', function(event, msg) {
event.returnValue = msg;
});
-process.on('uncaughtException', function(error) {
- console.log(error);
- window.openDevTools();
-});
+if (process.argv[1] == '--ci') {
+ process.removeAllListeners('uncaughtException');
+ process.on('uncaughtException', function(error) {
+ console.error(error, error.stack);
+ process.exit(1);
+ });
+}
app.on('window-all-closed', function() {
app.quit();