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/unit/lib
Martin Brennan cecdef83a8
FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419)
Firefox does not support window.ClipboardItem yet (it is behind
a flag (dom.events.asyncClipboard.clipboardItem) as at version 87.)
so we need to fall back to the normal non-async clipboard copy, that
works in every browser except Safari.

This commit also tests the clipboardCopyAsync function by stubbing out
the clipboard on the window.navigator.

This fixes an issue in the discourse-chat plugin, where the
"Quote in Topic" button errored in Firefox.
2022-04-11 13:00:45 +10:00
..
allow-lister-test.js DEV: adds initial support for custom blocks using code fencing (#15743) 2022-02-09 11:23:44 +01:00
bookmark-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
category-badge-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
click-track-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
computed-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
dom-from-string-test.js DEV: Allow utility class domFromString to take in strings with multiple top level elements (#15548) 2022-01-12 19:49:24 +08:00
download-calendar-test.js FIX: improvements for download local dates (#14588) 2021-10-14 09:22:44 +11:00
emoji-store-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
emoji-test.js FEATURE: Partial match aliases in emoji filter (#15613) 2022-02-01 22:36:48 +01:00
formatter-test.js DEV: Allow utility class domFromString to take in strings with multiple top level elements (#15548) 2022-01-12 19:49:24 +08:00
get-url-test.js FIX: Build correct post and topic shareUrl (#16332) 2022-04-01 00:02:01 +03:00
highlight-search-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
i18n-test.js DEV: Add count to missing translation strings (#15509) 2022-01-09 23:10:32 +01:00
icon-library-test.js DEV: Remove xlink hrefs (#15059) 2021-11-25 15:22:43 +11:00
key-value-store-test.js DEV: Use class syntax in key-value-store (#15005) 2021-11-18 16:54:47 +01:00
keyboard-shortcuts-test.js DEV: Add more keyboard shortcut acceptance tests (#13280) 2021-06-04 14:04:20 +10:00
link-lookup-test.js FIX: Normalize links by converting them to lower case 2020-12-11 11:16:51 -05:00
link-mentions-test.js DEV: A manual test waiter might not be needed (#16142) 2022-03-09 15:38:10 +01:00
load-script-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
oneboxer-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
parse-bbcode-tag-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
preload-store-test.js FIX: Prevent PreloadStore from calling the finder when value is falsy (#14899) 2021-11-12 17:45:06 +01:00
pretty-text-test.js DEV: add native lazy loading for emojis (#15830) 2022-02-09 12:18:59 +01:00
sanitizer-test.js DEV: adds initial support for custom blocks using code fencing (#15743) 2022-02-09 11:23:44 +01:00
search-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
sharing-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
suffix-trie-test.js PERF: Improve JS app boot speed by optimizing customResolve() (#14990) 2021-11-18 16:38:00 +00:00
text-direction-test.js FIX: Respect text direction inside quotes (#16004) 2022-02-23 10:26:45 +03:00
time-utils-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
timeframes-builder-test.js FIX: no need to hide "Later This Week" when showing "Later Today" (#16365) 2022-04-05 16:49:05 +04:00
to-markdown-test.js DEV: Remove xlink hrefs (#15059) 2021-11-25 15:22:43 +11:00
upload-short-url-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
uploads-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
uppy-checksum-plugin-test.js DEV: Improve stability of Tests (#15591) 2022-01-17 08:57:05 +01:00
uppy-media-optimization-plugin-test.js DEV: Use @bind instead of repeated .bind(this) (#14931) 2021-11-15 10:07:53 +01:00
url-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
user-search-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
utilities-test.js FIX: Fall back to clipboard.writeText if ClipboardItem not supported (#16419) 2022-04-11 13:00:45 +10:00