electron/spec/fixtures/api
Charles Kerr 65ee977a86 Exit gracefully on linux (#12139)
* Fix timing issue in singleton fixture.

Singleton now sends the "we've started" message out only after it's
received a `'ready'` event from `app`. Previously it sent the message
out immediately, resulting in the parent test trying to manipulate it
before Singleton's event loop was fully bootstrapped.

* Check for graceful exits on Linux, too.

Rewrite the "exits gracefully on macos" spec to run on Linux too.

* Check for graceful exits everywhere.

* Tweak comment

* Better error logging in api-app-spec.js. (#12122)

In the 'exits gracefully' test for app.exit(exitCode),
print the relevant error information if the test fails.

* Run the exit-gracefully test on macOS and Linux.

Windows does not support sending signals, but Node.js offers some
emulation with process.kill(), and subprocess.kill(). Sending signal 0
can be used to test for the existence of a process. Sending SIGINT,
SIGTERM, and SIGKILL cause the unconditional termination of the target
process.

So, we'll need a different approach if we want to test this in win32.
2018-03-06 22:01:17 -05:00
..
electron-module-app
exit-closes-all-windows-app
locale-check
mixed-sandbox-app
quit-app
relaunch
singleton
allocate-memory.html
beforeunload-false-prevent3.html
beforeunload-false.html
blank.html
close-beforeunload-empty-string.html
close-beforeunload-false.html
close-beforeunload-undefined.html
close.html
crash-restart.html
crash.html
did-fail-load-iframe.html
frame-subscriber.html
isolated-preload.js
isolated.html
loaded-from-dataurl.js
localstorage.html
native-window-open-blank.html
native-window-open-child.html
native-window-open-cross-origin.html
native-window-open-file.html
native-window-open-iframe.html
native-window-open-isolated-preload.js
native-window-open-isolated.html
native-window-open-native-addon.html
native-window-open-no-allowpopups.html
new-window-preload.js
new-window.html
offscreen-rendering.html
preload.html
preloads.html
remote-event-handler.html
render-view-deleted.html
sandbox.html
send-sync-message.html
unload.html
window-open-location-change.html
window-open-location-final.html
window-open-location-open.html
window-open-preload.js