Add spec for crash-reporter

This commit is contained in:
Cheng Zhao 2013-11-15 00:10:43 +08:00
parent 6b02be6da8
commit cdb5e24d2f
2 changed files with 31 additions and 0 deletions

14
spec/fixtures/api/crash.html vendored Normal file
View file

@ -0,0 +1,14 @@
<html>
<body>
<script type="text/javascript" charset="utf-8">
var crashReporter = require('crash-reporter');
crashReporter.start({
submitUrl: 'http://127.0.0.1:901007',
autoSubmit: true,
ignoreSystemCrashHandler: true
});
setImmediate(function() { process.crash(); });
</script>
</body>
</html>