electron/spec-main/fixtures/api
Charles Kerr c83f836faf
refactor: prefer using app.whenReady() (#21972)
* docs: add references to app.whenReady() in isReady

* refactor: prefer app.whenReady()

In the docs, specs, and lib, replace instances of `app.once('ready')`
(seen occasionally) and `app.on('ready')` (extremely common) with
`app.whenReady()`.

It's better to encourage users to use whenReady():
1. it handles the edge case of registering for 'ready' after it's fired
2. it avoids the minor wart of leaving an active listener alive for
an event that wll never fire again
2020-02-03 22:43:22 +00:00
..
context-bridge feat: add a new contextBridge module (#20307) 2019-10-18 12:57:09 -07:00
ipc-main-listeners refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
net-log refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
test-menu-null refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
test-menu-visibility refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
beforeunload-false-prevent3.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
close-beforeunload-empty-string.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
close-beforeunload-false.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
close-beforeunload-undefined.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
leak-exit-browserview.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
leak-exit-webcontentsview.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
native-window-open-native-addon.html test: move module tests to main process (#20419) 2019-10-09 16:33:15 -07:00
print-to-pdf.html test: check actual output generated from printToPDF (#21949) 2020-01-30 20:12:35 +00:00
remote-event-handler.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
render-view-deleted.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
sandbox.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
send-on-exit.html fix: send ELECTRON_BROWSER_CONTEXT_RELEASE asynchronously (#20632) 2019-10-23 13:44:21 +09:00
send-sync-message.html test: move some fixtures from spec/ to spec-main/ (#21403) 2020-01-09 11:50:56 -08:00