Joshua A. Horton
068869c431
feat(web): enables text-selection unit tests for mobile
2022-10-10 09:11:20 +07:00
Joshua A. Horton
f8438d2117
chore(web): Merge branch 'master' into change/web/drop-touch-aliases
2022-10-10 09:04:24 +07:00
Joshua A. Horton
26952447d6
chore(web): removes final kmw_ip refs
2022-10-03 08:26:12 +07:00
Joshua A. Horton
1c021e821c
chore(web): a bit more cleanup per review
2022-10-03 08:22:10 +07:00
Joshua A. Horton
336a1972a5
chore(web): Merge remote-tracking branch 'origin/master' into chore/web/unit-test-polish-pass
2022-09-29 10:38:14 +07:00
Joshua A. Horton
c79e1c3e3c
chore(web): unit test polishing pass
2022-09-29 10:21:29 +07:00
Joshua A. Horton
b126176394
chore(web): cleans up attachment tests, re-unifies 'em
2022-09-29 08:17:55 +07:00
Joshua A. Horton
0775eee2ec
chore(web): enables text-selection unit tests for mobile
2022-09-29 08:17:53 +07:00
Joshua A. Horton
fe585b88af
chore(web): removal of 'kmw_ip' checks, references
2022-09-29 08:17:47 +07:00
Joshua A. Horton
7b498d60e1
chore(web): missed some spots
2022-09-29 08:17:46 +07:00
Joshua A. Horton
dfca726cf1
chore(web): fully removes touch-alias stuff
2022-09-29 08:17:45 +07:00
Joshua A. Horton
cf1088027b
fix(common/web): mocks did not update deadkey positions on context manipulation
2022-09-22 08:57:45 +07:00
jahorton
4d14bc6998
fix(web): fixes previously-unstable unit test
2022-08-02 16:10:04 +07:00
jahorton
8fab028632
chore(web): minor unit test issue review, tweak
2022-08-02 15:47:28 +07:00
jahorton
967e36e405
chore(web): cleaner promise flow for other tests
2022-08-02 15:42:51 +07:00
jahorton
d2a92494a5
fix(web): Promise logic for keyboard-loading tests
2022-08-02 15:36:34 +07:00
Joshua A. Horton
8f4198501d
refactor(web): converts test_utils funcs to Promise use
2022-08-02 11:08:46 +07:00
Joshua A. Horton
5a7840753f
chore(web): centralizes test-start timeout config logic
2022-08-01 11:39:14 +07:00
jahorton
eb62bcb7ee
chore(web): rips out document.createEvent
2022-05-31 09:11:16 +07:00
Marc Durdin
7273028192
chore(web): add unit test for selection and matching rule
2022-02-25 15:06:11 +11:00
Marc Durdin
c331758ec1
chore: address review suggestions
2022-02-25 08:52:20 +11:00
Marc Durdin
b1ba2d24d7
chore: enable all test cases
2022-02-25 08:47:14 +11:00
Marc Durdin
bf2270aa69
chore(web): add smp tests for text selection
2022-02-24 15:59:16 +11:00
Marc Durdin
6ba75c54f5
chore(web): disable text selection tests on mobile
2022-02-24 14:14:15 +11:00
Marc Durdin
b58ce45ef7
fix(web): add Input text selection tests
2022-02-24 11:29:34 +11:00
Marc Durdin
9b84af8a2f
fix(web): add unit tests for selection
...
This adds a set of unit tests for the TextArea element, initially, to
verify that selection and context are working as expected.
2022-02-24 11:25:21 +11:00
Marc Durdin
b05fda1c6a
fix(web): selection direction and tests
...
Selection direction was not maintained in mutations, which could have
unexpected consequences. Added support for selection direction to input
and textarea.
The functions `getTextBeforeCaret()` and `getTextAfterCaret()` are named
somewhat incorrectly, as they actually get the text before and after the
active selection (and a collapsed zero-length selection is equivalent to
the caret). It would be worth renaming these in a future refactor.
This PR fixes the unit tests so that caret position is tested correctly
with an active selection -- the caret can be at either the start or the
end of the selection, corresponding with the direction in which the user
originally selected the text. It also fixes the assumptions around the
above named functions for `input` and `textarea` types.
Note that selection interactions are still buggy with prediction
selections; these bugs were present in 15.0.118-alpha and I will tackle
them in an upcoming commit.
2022-02-23 15:13:07 +11:00
Marc Durdin
3601ae95e4
chore(web): fix broken test
2021-11-29 10:54:05 +11:00
Marc Durdin
a6a7ed230b
chore(web): disable registerstub test
...
See #5799 .
2021-10-06 07:31:33 +11:00
jahorton
7fd62c51f4
refactor(web): centralizes element-oriented OSK display logic, polish for prior commits
2021-09-01 09:44:02 +07:00
jahorton
c2c5bb3d13
chore(web): restores branch unit tests; they were not against embedded tab
2021-08-05 12:23:23 +07:00
jahorton
4a2fec2d8f
refactor(web): roots out embedded-tab code from source branch
2021-08-05 12:13:03 +07:00
jahorton
3066c1f246
chore(web): Merge branch 'master' into fix/web/final-match-group
2021-08-05 11:02:24 +07:00
Darcy Wong
20fa22dab6
fix(web): Move code to registerStub
2021-07-05 13:52:16 +07:00
Darcy Wong
d37e48c0cc
fix(web): Start fixing registeruStub return
2021-07-02 16:53:23 +07:00
jahorton
2d422a8626
feat(web): unit tests
2021-01-28 14:39:20 +07:00
jahorton
b711577bee
fix(web): fixes attachment test on mobile, removes migrated tests from prior commit
2020-05-01 14:55:19 +07:00
jahorton
914b105b15
feat(web/engine): bulk of engine rule checks now Node-based
2020-05-01 14:40:43 +07:00
jahorton
3e417fa4c4
feat(web/engine): basic store explosion test relocated
2020-05-01 12:32:43 +07:00
jahorton
0e8e32059d
chore(web/engine): finalizes deadkey test move
2020-05-01 09:52:59 +07:00
jahorton
f06c94485e
change(web): moves KMW test resources to common/core/web/tests/
2020-05-01 08:10:32 +07:00
jahorton
b8aabfdbb4
change(web): more recorder spec renaming
2020-05-01 08:08:49 +07:00
jahorton
bdd41ec696
change(web): recorder: InputEvent -> InputEventSpec
2020-05-01 08:08:49 +07:00
jahorton
4a9f0c292b
refactor(web): start of recorder's BrowserProctor
2020-05-01 08:06:55 +07:00
jahorton
5b7bf24c69
fix(web): fixes affected unit tests
2020-05-01 08:06:55 +07:00
jahorton
39e44fe4f6
change(web/engine): Converts version unit tests to headless
2020-04-29 16:17:35 +07:00
jahorton
2789d80bae
change(web): converts transcription tests to headless
2020-04-29 16:17:35 +07:00
jahorton
7a04baa9a5
change(web/engine): kbdProcessor.core => core.keyboardProcessor
2020-04-06 13:17:32 +07:00
jahorton
8ecacd0476
fix(web): unit test adjustments for new namespacing
...
fix(web): missed resource
2020-03-26 13:00:45 +07:00
jahorton
38641559f0
test(web): Removes IE from unit-testing
2020-03-25 11:36:26 +07:00