electron/spec
Nitish Sakhawalkar af4f08e030 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 14:30:41 -04:00
..
fixtures fix: use OS process handle to clear object registry (#14364) 2018-08-28 22:55:42 -07:00
static chore(tests): allow usage of deprecated APIs in tests (#13862) 2018-07-30 15:02:59 +10:00
api-app-spec.js FIXME: getAppMetrics fails on windows CI 2018-06-19 11:49:46 +10: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 spec: update browser-window-affinity spec to expect (#13239) 2018-06-17 15:36:30 -07:00
api-browser-window-spec.js fix: notify focus change right away rather not on next tick (#14453) 2018-09-07 14:30:41 -04:00
api-callbacks-registry-spec.js spec: update callback registry spec to expect (#13263) 2018-06-17 15:08:17 -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 backport debugger fix (#14481) 2018-09-06 10:57:41 -07:00
api-deprecations-spec.js Backport (3-0-x) - fix: deprecate properties in app.getAppMetrics() (#13453) 2018-06-27 19:07:39 +10:00
api-desktop-capturer-spec.js fix: create a window capturer correctly (backport: 3-0-x) (#13693) 2018-07-17 15:30:33 +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 spec: convert ipc specs to expect (#13273) 2018-06-19 10:21:50 -05:00
api-ipc-renderer-spec.js spec: convert ipc specs to expect (#13273) 2018-06-19 10:21:50 -05:00
api-menu-item-spec.js improve Menu and MenuItem testing (#12015) 2018-02-23 07:53:59 -06:00
api-menu-spec.js Add menu item order control (#12362) 2018-05-05 09:37:29 -07:00
api-native-image-spec.js Remove nativeImage deprecated methods (#11978) 2018-02-20 09:15:27 -06:00
api-net-log-spec.js feat: netLog API for dynamic logging control (#13068) 2018-06-19 11:45:58 +10: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 Linux named notifications (#12192) 2018-03-12 09:33:06 +09:00
api-notification-spec.js Add Notification tests 2018-02-10 03:19:47 -08:00
api-power-monitor-spec.js powerMontor crashes linux ia32, re-disable 2018-06-19 11:49:46 +10:00
api-power-save-blocker-spec.js Add initial power save blocker spec 2016-08-09 15:05:56 -07:00
api-process-spec.js Add process.getHeapStatistics() (#13183) 2018-06-10 22:00:36 +10: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 Re-enable cookie specs and add custom cookie name/url validation 2018-06-19 11:49:46 +10: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 (#14384) 2018-09-01 08:49: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 14:30:41 -04: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 fix: enable spell checking, which broke in upgrade to ch66 2018-07-12 13:28:15 -07:00
api-web-request-spec.js 🔧 Spec: Fix style issues 2017-11-23 14:22:58 -08:00
asar-spec.js fix: override fs.realpathSync.native and fs.realpath.native (backport: 3-0-x) (#14051) 2018-08-13 23:53:34 -07:00
chromium-spec.js fix: opt into location services once device service has been started (backport: 3-0-x) (#14289) 2018-08-24 08:23:15 -07:00
events-helpers.js spec: add helper functions for async/await tests 2018-06-19 13:27:43 +02:00
modules-spec.js re-enable native module tests 2018-06-19 11:49:46 +10:00
node-spec.js fix: util.promisify(setTimeout) (#13860) 2018-07-30 15:02:52 +10:00
package-lock.json Backport (3-0-x) - test: Upgrade spec dependencies (#13328) 2018-06-20 09:24:27 -05:00
package.json Backport (3-0-x) - test: Upgrade spec dependencies (#13328) 2018-06-20 09:24:27 -05:00
security-warnings-spec.js update signature for setCertificateVerifyProc in session spec 2018-05-29 10:54:27 -04:00
webview-spec.js fix: webview.focus() should move page focus to webview (#14428) 2018-09-03 13:26:41 +10:00
window-helpers.js Assert single window from closeWindow helper 2016-11-29 11:29:20 -08:00