electron/spec/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
..
app-path fix: app.getAppPath() returning default-app path for files or directories without package.json (#18763) 2019-06-19 23:34:22 +02:00
command-line refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
cookie-app refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
default-menu refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
electron-main-module refactor: allow embedder overriding of internal FS calls (#17906) (#18183) 2019-05-07 06:44:32 -07:00
electron-module-app
exit-closes-all-windows-app refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
locale-check refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
mixed-sandbox-app refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
quit-app refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
relaunch refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
shared-worker feat: allow inspection of specific shared workers (#20389) 2019-10-02 14:38:27 +02:00
singleton refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
site-instance-overrides feat: Add option to conditionally disable site instance patches (#18396) 2019-05-31 15:47:18 -07:00
window-all-closed refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
beforeunload-false.html test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
blank.html
close.html test: fix flaky onbeforeunload tests (#19085) 2019-07-02 13:48:58 -07:00
crash-restart.html fix: use crashpad on Windows (#18483) 2019-06-13 15:42:21 +09:00
crash.html fix: use crashpad on Windows (#18483) 2019-06-13 15:42:21 +09:00
crash_child.html ci: enable crashReporter tests on mac (#19582) 2019-10-02 17:53:51 -07:00
did-fail-load-iframe.html
frame-subscriber.html
globals.html fix: ensure no node globals passively leak when nodeIntegration is disabled (#21342) 2019-12-02 10:09:47 -08:00
gpu-info.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
isolated-fetch-preload.js
isolated-preload.js
isolated.html
leak-exit-webcontents.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
loaded-from-dataurl.js
localstorage.html test: move several session specs to the main runner (#18433) 2019-05-28 14:12:59 -07:00
native-window-open-argv.html fix: child window with nativeWindowOpen should disable node integration (#15213) 2018-10-25 15:31:07 +09:00
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-no-allowpopups.html
new-window-preload.js test: remove a bunch of usage of the remote module (#21119) 2019-11-14 14:09:03 -08:00
new-window-webview-preload.js fix: <webview> not working in scriptable popups (#19198) 2019-07-11 20:56:04 -05:00
new-window-webview.html fix: <webview> not working in scriptable popups (#19198) 2019-07-11 20:56:04 -05:00
new-window.html
no-leak.html fix: ensure the sandboxed preloads globals do not leak (#17712) 2019-04-16 10:57:02 -07:00
offscreen-rendering.html
picture-in-picture.html feat: enable picture-in-picture mode for video tags (#17686) 2019-08-22 19:17:50 +09:00
preload.html
unload.html
window-open-location-change.html
window-open-location-final.html
window-open-location-open.html
window-open-preload.js chore: bump chromium to 4b6692e4cc2839729bb7ac009586a (master) (#21864) 2020-01-29 07:01:37 -05:00