electron/spec
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
..
configs
fixtures refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
static refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
ts-smoke refactor: prefer using app.whenReady() (#21972) 2020-02-03 22:43:22 +00:00
.eslintrc
api-clipboard-spec.js
api-native-image-spec.js build: speedy tests on circle by splitting the test files into multiple jobs (#21015) 2019-11-06 16:15:55 -08:00
api-process-spec.js test: remove 'remote' usage from process tests (#20418) 2019-10-04 13:58:44 -07:00
api-shell-spec.js build: speedy tests on circle by splitting the test files into multiple jobs (#21015) 2019-11-06 16:15:55 -08:00
api-web-frame-spec.js fix: deprecate setLayoutZoomLevelLimits (#21296) 2019-12-02 13:27:03 -08:00
asar-spec.js build: speedy tests on circle by splitting the test files into multiple jobs (#21015) 2019-11-06 16:15:55 -08:00
BUILD.gn chore: bump chromium to 279aeeec3c9fe2237bc31f776f269 (master) (#21521) 2020-01-17 10:41:52 -08:00
chromium-spec.js fix: prevent silent failure when DOM storage quota exceeded (#20899) 2019-11-22 11:35:54 -08:00
events-helpers.js
expect-helpers.js chore: finish replacing assert with expect in tests (#18215) 2019-05-20 12:04:18 -05:00
node-spec.js test: clean up some stale code in renderer spec runner (#21384) 2019-12-17 11:15:12 +09:00
package.json chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
spec-helpers.js build: add enable_remote_module build flag (#19821) 2019-09-18 09:52:06 -07:00
webview-spec.js test: clean up some stale code in renderer spec runner (#21384) 2019-12-17 11:15:12 +09:00
yarn.lock chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00