ci: enable crashReporter tests on mac (#19582)
This commit is contained in:
parent
fe956f87ec
commit
2470ef2e91
3 changed files with 35 additions and 91 deletions
24
spec/fixtures/api/crash_child.html
vendored
Normal file
24
spec/fixtures/api/crash_child.html
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
<html>
|
||||
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
const query = new URLSearchParams(location.search)
|
||||
const port = query.get('port')
|
||||
const version = query.get('version')
|
||||
const crashesDir = query.get('crashesDir')
|
||||
const crashPath = query.get('crashPath')
|
||||
|
||||
const { crashReporter } = require('electron');
|
||||
|
||||
crashReporter.start({
|
||||
productName: 'Zombies',
|
||||
companyName: 'Umbrella Corporation',
|
||||
submitURL: 'http://127.0.0.1:' + port
|
||||
})
|
||||
|
||||
require('child_process').fork(crashPath, [port, version, crashesDir])
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue