electron/spec
Nitish Sakhawalkar a2ab0d8ebe fix: notify focus change right away rather not on next tick (#14453)
* fix: Notify focus change right away, not on next tick

* fix: emit the JS blur/focus events on next tick to avoid race condition

* address feedback from review

* fix: bind deferred Emit() calls to a WeakPtr

This is so that the deferred Emit() calls will be canceled
if the TopLevelWindow is destroyed.

* chore: remove wip/test code cruft

* fix: make linter happy

* Enable disabled tests

* refactor: cleaner impl of EmitEventSoon()

* Revert "Merge branch 'fix-win-focus' of github.com:electron/electron into fix-win-focus"

This reverts commit 90576806eb271d059f0a215c67e9b4b04f7396a4, reversing
changes made to 9c13e47779a3af78fe0970c1f3d6cd040a5354e6.

* Restore 704722c1, which was removed in error.

We apologise again for the fault in the subtitles. Those responsible for sacking the people who have just been sacked have been sacked.
2018-09-07 13:21:58 -05:00
..
fixtures chore: refactor webContents module isCurrentlyAudible api spec (#14410) 2018-09-05 16:00:05 -05:00
static feat: add session.setPermissionCheckHandler (#13925) 2018-08-28 09:05:08 -05:00
api-app-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-auto-updater-spec.js spec: update auto-updater spec to expect (#13237) 2018-06-16 00:28:28 -07:00
api-browser-view-spec.js spec: update browser-view spec to expect (#13238) 2018-06-17 15:56:04 -07:00
api-browser-window-affinity-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-browser-window-spec.js fix: notify focus change right away rather not on next tick (#14453) 2018-09-07 13:21:58 -05:00
api-callbacks-registry-spec.js refactor: don't expose CallbacksRegistry as an internal module (#14389) 2018-08-31 11:29:00 -07:00
api-clipboard-spec.js spec: convert clipboard spec to use expect (#13266) 2018-06-17 14:47:51 -07:00
api-crash-reporter-spec.js Enable a few tests 2018-06-19 11:49:46 +10:00
api-debugger-spec.js chore: enable debugger api specs (#14475) 2018-09-07 00:44:22 +10:00
api-deprecations-spec.js fix: deprecate properties in app.getAppMetrics() (#13446) 2018-06-26 23:47:01 -07:00
api-desktop-capturer-spec.js fix: create a window capturer correctly (#13689) 2018-07-17 14:20:50 +10:00
api-dialog-spec.js spec: convert dialog spec to expect (#13271) 2018-06-18 07:56:03 -07:00
api-global-shortcut-spec.js spec: convert IAP and GC specs to expect (#13272) 2018-06-18 09:50:37 -07:00
api-in-app-purchase-spec.js spec: convert IAP and GC specs to expect (#13272) 2018-06-18 09:50:37 -07:00
api-ipc-main-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-ipc-renderer-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-menu-item-spec.js spec: convert menu specs to expect (#13485) 2018-06-30 00:25:28 -07:00
api-menu-spec.js fix: Stricter Testing For Menu Items (#13992) 2018-08-17 13:10:14 -07:00
api-native-image-spec.js test: make nativeImage relative path test robust to different cwd 2018-08-01 15:19:26 -07:00
api-net-log-spec.js spec: convert smaller specs to expect 2018-06-28 15:40:30 -07:00
api-net-spec.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10:00
api-notification-dbus-spec.js address feedback 2018-07-10 14:20:03 -07:00
api-notification-spec.js test: update power/notification specs to expect (#13497) 2018-09-01 08:52:32 +12:00
api-power-monitor-spec.js test: update power/notification specs to expect (#13497) 2018-09-01 08:52:32 +12:00
api-power-save-blocker-spec.js test: update power/notification specs to expect (#13497) 2018-09-01 08:52:32 +12:00
api-process-spec.js feat: Add creationTime function to process (#13542) 2018-08-10 09:03:30 -05:00
api-protocol-spec.js reenable some specs 2018-01-02 16:37:08 +09:00
api-remote-spec.js perf: don't use JSON to send the result of ipcRenderer.sendSync. (#8953) 2018-06-13 17:38:31 +10:00
api-screen-spec.js remove screen.getMenuBarHeight spec 2018-03-05 20:10:34 -05:00
api-session-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-shell-spec.js Explicitly skip tests that should be skipped 2017-11-20 14:43:23 +01:00
api-system-preferences-spec.js add loop to catch null values 2017-12-13 14:02:43 -05:00
api-touch-bar-spec.js update touch bar spec 2017-10-26 21:08:47 -04:00
api-tray-spec.js fix: allow Tray with title only (without icon) on Mac (#13851) 2018-08-30 21:16:56 +12:00
api-view-spec.js add tests for View and WebContentsView 2018-05-21 10:53:09 +09:00
api-web-contents-spec.js fix: notify focus change right away rather not on next tick (#14453) 2018-09-07 13:21:58 -05:00
api-web-contents-view-spec.js add tests for View and WebContentsView 2018-05-21 10:53:09 +09:00
api-web-frame-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
api-web-request-spec.js 🔧 Spec: Fix style issues 2017-11-23 14:22:58 -08:00
asar-spec.js test: refactor the "util.promisify" test (#14491) 2018-09-07 10:13:10 -05:00
chromium-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
events-helpers.js spec: add helper functions for async/await tests 2018-06-19 13:27:43 +02:00
modules-spec.js refactor: properly report on skipped native modules tests (#13894) 2018-08-24 14:24:24 -07:00
node-spec.js fix: util.promisify(setTimeout) (#13840) 2018-07-30 11:14:04 +10:00
package-lock.json test: Upgrade spec dependencies (#13310) 2018-06-20 17:18:24 +10:00
package.json test: Upgrade spec dependencies (#13310) 2018-06-20 17:18:24 +10:00
security-warnings-spec.js update signature for setCertificateVerifyProc in session spec 2018-05-29 10:54:27 -04:00
webview-spec.js refactor: use loadFile when appropriate in tests (#14422) 2018-09-04 09:50:53 -05:00
window-helpers.js spec: refactor helper closeWindow() function (#13337) 2018-06-22 00:43:15 +10:00