electron/spec-main
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
..
fixtures refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
.eslintrc
.gitignore
ambient.d.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-app-spec.ts test: add test for app.on('certificate-error') event (#21978) 2020-01-31 15:25:01 -08:00
api-auto-updater-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-autoupdater-darwin-spec.ts test: move some fixtures from spec/ to spec-main/ (#21403) 2020-01-09 11:50:56 -08:00
api-browser-view-spec.ts test: use exit event to wait for process exit (#21865) 2020-01-27 10:29:50 +09:00
api-browser-window-affinity-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-browser-window-spec.ts feat: enable native extensions support (#21814) 2020-02-03 14:01:10 -08:00
api-callbacks-registry-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-content-tracing-spec.ts test: move contentTracing specs to main process (#19229) 2019-07-15 17:23:35 +09:00
api-context-bridge-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-crash-reporter-spec.ts test: use exit event to wait for process exit (#21865) 2020-01-27 10:29:50 +09:00
api-debugger-spec.ts test: move some fixtures from spec/ to spec-main/ (#21403) 2020-01-09 11:50:56 -08:00
api-deprecate-spec.ts test: check actual output generated from printToPDF (#21949) 2020-01-30 20:12:35 +00:00
api-desktop-capturer-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-dialog-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-global-shortcut-spec.ts test: there is only --ci (#20794) 2019-10-30 16:38:21 -07:00
api-in-app-purchase-spec.ts feat: enable explicit IAP restoration (#21461) 2019-12-17 07:07:11 -08:00
api-ipc-main-spec.ts test: move some fixtures from spec/ to spec-main/ (#21403) 2020-01-09 11:50:56 -08:00
api-ipc-renderer-spec.ts feat: remove deprecated base::Value-based serialization (#21560) 2019-12-18 15:24:50 +09:00
api-ipc-spec.ts build: speedy tests on circle by splitting the test files into multiple jobs (#21015) 2019-11-06 16:15:55 -08:00
api-menu-item-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-menu-spec.ts test: use exit event to wait for process exit (#21865) 2020-01-27 10:29:50 +09:00
api-native-theme-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-net-log-spec.ts fix: return path from netLog.stopLogging (#21985) 2020-01-31 10:43:02 -08:00
api-net-spec.ts fix: pass full response headers in net module (#21552) 2020-01-14 09:36:08 -08:00
api-notification-dbus-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-notification-spec.ts test: move Notification spec to main process (#19414) 2019-07-24 17:18:11 -07:00
api-power-monitor-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-power-save-blocker-spec.ts spec: move powerSaveBlocker spec to main process (#19236) 2019-07-15 17:38:01 +09:00
api-protocol-spec.ts fix: stream protocols not completing (#21733) 2020-01-13 10:28:21 -08:00
api-remote-spec.ts feat: remove deprecated base::Value-based serialization (#21560) 2019-12-18 15:24:50 +09:00
api-screen-spec.ts move screen api test to main process (#18956) 2019-06-24 11:30:47 -07:00
api-session-spec.ts test: use exit event to wait for process exit (#21865) 2020-01-27 10:29:50 +09:00
api-shell-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-subframe-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-system-preferences-spec.ts feat: add 'screen' to systemPreferences.getMediaAccessStatus() (#20764) 2019-11-13 16:47:51 -05:00
api-touch-bar-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-tray-spec.ts feat: allow GUID parameter to avoid systray demotion on Windows (#21891) 2020-01-31 14:37:03 +09:00
api-view-spec.ts test: tsify spec for experimental views api (#19966) 2019-08-27 16:37:30 +09:00
api-web-contents-spec.ts fix: prevent print crash on bad deviceName (#21946) 2020-01-31 11:49:13 +09:00
api-web-contents-view-spec.ts test: use exit event to wait for process exit (#21865) 2020-01-27 10:29:50 +09:00
api-web-frame-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
api-web-request-spec.ts fix: crash when doing redirect navigation with webRequest listener (#21838) 2020-01-22 10:31:10 +09:00
asar-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
chromium-spec.ts chore: bump chromium to 4b6692e4cc2839729bb7ac009586a (master) (#21864) 2020-01-29 07:01:37 -05:00
events-helpers.ts chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
extensions-spec.ts feat: enable native extensions support (#21814) 2020-02-03 14:01:10 -08:00
index.js test: add test for app.on('certificate-error') event (#21978) 2020-01-31 15:25:01 -08:00
internal-spec.ts test: tsify internal-spec (#19962) 2019-08-28 13:54:42 -07:00
modules-spec.ts feat: remove deprecated base::Value-based serialization (#21560) 2019-12-18 15:24:50 +09:00
node-spec.ts chore: remove no longer needed macOS SDK forward declarations (#19918) 2019-11-03 21:46:12 +03:00
package.json test: check actual output generated from printToPDF (#21949) 2020-01-30 20:12:35 +00:00
security-warnings-spec.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
spec-helpers.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
types-spec.ts build: ensure that we bundle the correct version of @types/node (#19102) 2019-07-03 16:36:59 -07:00
version-bump-spec.ts build: fix nightly version bumping (#21079) 2019-11-12 08:36:03 -08:00
visibility-state-spec.ts test: retry for a few flaky tests (#21658) 2020-01-09 11:50:30 -08:00
webview-spec.ts feat: enable native extensions support (#21814) 2020-02-03 14:01:10 -08:00
window-helpers.ts chore: lint spec-main (#20835) 2019-11-01 13:37:02 -07:00
yarn.lock test: check actual output generated from printToPDF (#21949) 2020-01-30 20:12:35 +00:00