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 chore: update to standard 12 2018-09-14 14:57:01 +10:00
isolated-preload.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
isolated.html chore: refactor context isolation spec (#14394) 2018-09-01 08:51:29 +12:00
leak-exit-webcontents.js refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
loaded-from-dataurl.js Issue #8735:Support base URL option to loadURL for data URLs 2017-02-28 16:49:03 -08:00
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 Add spec for native window.open from iframe 2017-05-26 10:10:36 -07:00
native-window-open-child.html Add test for opeing HTML file 2017-04-04 19:05:13 +09:00
native-window-open-cross-origin.html Use an existing host name so that it resolves quickly and tests don't time out. 2017-11-24 10:58:53 +09:00
native-window-open-file.html Fix JS style in test HTMLs 2017-04-30 19:43:21 +09:00
native-window-open-iframe.html Add spec for native window.open from iframe 2017-05-26 10:10:36 -07:00
native-window-open-isolated-preload.js chore: update to standard 12 2018-09-14 14:57:01 +10:00
native-window-open-isolated.html Fix JS style in test HTMLs 2017-04-30 19:43:21 +09:00
native-window-open-no-allowpopups.html Add failing spec for native window.open returning null without allowpopups 2017-05-26 10:10:36 -07:00
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 Add spec for configuring web preferences from sandboxed new-window event 2017-07-17 11:55:15 -07:00
no-leak.html fix: ensure the sandboxed preloads globals do not leak (#17712) 2019-04-16 10:57:02 -07:00
offscreen-rendering.html adds tests for osr 2016-07-31 17:10:53 +02:00
picture-in-picture.html feat: enable picture-in-picture mode for video tags (#17686) 2019-08-22 19:17:50 +09:00
preload.html spec: add test for syncronous access to blink APIs (#14637) 2018-09-25 10:40:15 +12:00
unload.html
window-open-location-change.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-location-final.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-location-open.html Add spec for reloading opened window cross-origin 2017-07-17 11:55:15 -07:00
window-open-preload.js chore: bump chromium to 4b6692e4cc2839729bb7ac009586a (master) (#21864) 2020-01-29 07:01:37 -05:00