This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/helpers
David Taylor fd93d6f955
DEV: lib/user-presence improvements (#15046)
- Remove JQuery
- Remove legacy `document.webkitHidden` support. None of our currently supported browsers need this
- Use `passive` event listeners. These allows the browser to process the events first, before passing control to us
- Add a new `unseenTime` parameter. This allows consumers to request a delay before being notified about the browser going into the background
- Add a method for removing a callback
- Fire the callback when presence changes in either direction. Previously it would only fire when the user becomes present after a period of inactivity.
- Ensure callbacks are only called once for each state change. Previously they would be called every 60s, regardless of the value
- Listen to the `visibilitychanged` and `focus` events, treating them as equivalent to user action. This will make messagebus re-activate more quickly when switching back to a stale tab
- Add test helpers
- Delete the unused `discourse/lib/page-visible` module.
- Call message-bus's onVisibilityChange API directly, rather than dispatching a fake event on the `document`
2021-11-25 12:07:07 +00:00
..
component-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
create-pretender.js FEATURE: display warning when sharing a topic in a restricted category (#14820) 2021-11-16 11:49:41 -05:00
create-store.js DEV: Make store an actual service (#14996) 2021-11-18 16:51:20 +01:00
d-editor-helper.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
fixture-pretender.js Support for Testem in Ember CLI (#12442) 2021-03-19 09:32:46 -04:00
presence-pretender.js DEV: prevents Firefox ESR tests to crash on ||= (#14758) 2021-10-28 10:55:22 +02:00
qunit-helpers.js DEV: lib/user-presence improvements (#15046) 2021-11-25 12:07:07 +00:00
review-pretender.js FEATURE: reason to reject user signup (#11700) 2021-01-15 09:43:26 +11:00
select-kit-helper.js DEV: Remove jQuery global usage where possible (#14905) 2021-11-12 19:23:20 +01:00
site-settings.js FEATURE: Make allow_uploaded_avatars accept TL (#14091) 2021-08-24 10:46:28 +03:00
site.js DEV: Remove hints of jshint (#14828) 2021-11-08 09:12:37 +08:00
store-pretender.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
textarea-selection-helper.js REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
widget-test.js FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320) 2021-06-09 10:58:55 -04:00