Commit graph

598 commits

Author SHA1 Message Date
Marc Durdin
f55218fec6 chore: Merge remote-tracking branch 'origin/epic/web-core' into auto/A19S35-merge-base-into-web-core 2026-08-14 17:19:28 +02:00
rc-swag
4522e087a3 fix(core): fix indenting in state_api_tests 2026-08-11 20:41:15 +10:00
rc-swag
5be5eb4689 fix(core): unit test action_que insert terminated
Adds the KM_CORE_IT_END terminator to action_clone test
before calling km_core_state_queue_action_items

Fixes:#16341
2026-08-11 16:06:28 +10:00
Marc Durdin
0e0c0be70d chore: Merge remote-tracking branch 'origin/epic/web-core' into auto/A19S34-merge-base-into-web-core 2026-08-10 11:58:50 +02:00
rc-swag
eb19c28ab9 fix(windows): comments and formating 2026-07-23 22:16:17 +10:00
rc-swag
a07fff8be3 fix(windows): change option_stack to deque
when vectors are resized the memory is realocated so all the option
pointers become invalid. Using a deque avoids this it has all the same
methods so it is straight replacement.

fixes: #15961
2026-07-23 21:52:32 +10:00
Marc Durdin
267a519943
Merge branch 'epic/web-core' into auto/A19S31-merge-master-into-web-core 2026-06-25 00:06:12 +10:00
rc-swag
5946dce596
Merge branch 'master' into fix/windows/clone-state-actions-deep-copy
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
2026-06-19 14:27:55 +10:00
Marc Durdin
87064bf552
Merge pull request #16048 from keymanapp/dependabot/npm_and_yarn/core/tests/unit/wasm/picomatch-2.3.2
chore(deps-dev): bump picomatch from 2.3.1 to 2.3.2 in /core/tests/unit/wasm
2026-06-09 01:09:06 +10:00
Marc Durdin
99caec107b
Merge pull request #16047 from keymanapp/dependabot/npm_and_yarn/core/tests/unit/wasm/js-yaml-4.2.0
chore(deps-dev): bump js-yaml from 4.1.0 to 4.2.0 in /core/tests/unit/wasm
2026-06-09 01:08:57 +10:00
Marc Durdin
8e9e372066
Merge pull request #16046 from keymanapp/dependabot/npm_and_yarn/core/tests/unit/wasm/glob-10.5.0
chore(deps): bump glob from 10.4.5 to 10.5.0 in /core/tests/unit/wasm
2026-06-09 01:08:47 +10:00
dependabot[bot]
0cc44cf63e
chore(deps-dev): bump picomatch in /core/tests/unit/wasm
Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-02 10:52:33 +00:00
dependabot[bot]
199bd9ae07
chore(deps-dev): bump js-yaml in /core/tests/unit/wasm
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.2.0.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/commits)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.2.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-02 10:52:24 +00:00
dependabot[bot]
45329e9680
chore(deps): bump glob from 10.4.5 to 10.5.0 in /core/tests/unit/wasm
Bumps [glob](https://github.com/isaacs/node-glob) from 10.4.5 to 10.5.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v10.4.5...v10.5.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 10.5.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-02 10:52:23 +00:00
dependabot[bot]
92440317b8
chore(deps): bump minimatch in /core/tests/unit/wasm
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 9.0.5 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v9.0.9)

Updates `minimatch` from 5.1.6 to 5.1.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v9.0.9)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 5.1.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-02 10:52:22 +00:00
Marc Durdin
6a98a39b8a
Merge branch 'master' into chore/web-core-preflight 2026-05-27 22:37:12 +10:00
Marc Durdin
3d65485ebd chore: Merge branch 'epic/web-core' into auto/A19S29-merge-master-into-web-core
Note: rewrote state_api.tests.cpp change to match new unit test pattern.
2026-05-22 11:32:24 +02:00
rc-swag
3b6e0a8da1 fix(windows): add comment to capture issue in test code
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run
2026-05-18 21:18:25 +10:00
rc-swag
49e222c273 fix(windows): actions list copy constructor
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
2026-05-18 21:07:30 +10:00
rc-swag
29b12ba42e fix(core): fix memory leak in state_api test
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run
2026-05-18 14:10:22 +10:00
rc-swag
c0a29a32f7 fix(core): remove white space and comments
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
2026-05-14 16:28:59 +10:00
rc-swag
3c0e7a72c1 fix(core): update unit tests 2026-05-14 15:58:12 +10:00
rc-swag
33cddff16e fix(windows): deep copy for state object
This commit update the state object to have a deep copy for the
action_struct member. The tests have been modified but have
a few issues however this branch is out of date with the refacted
master branch for unit tests. This commit gets the main change in
a future commit will update the tests.
2026-05-12 18:03:46 +10:00
Marc Durdin
f4e94fb3ef chore(core): Merge branch 'chore/core/15913-unit-test-follow-on' 2026-05-07 15:20:19 +02:00
Marc Durdin
e0fd08ca0f chore(core): cleanup leaks in tests and skipped tests 2026-05-07 15:19:27 +02:00
Marc Durdin
6ec106f827
Merge branch 'refactor/core/api-documentation' into chore/core/15913-unit-test-follow-on 2026-05-07 23:19:00 +10:00
Marc Durdin
82f4c954a5 chore(core): merge actions test data for unit tests
Merge actions test data struct and some of the data for the actions API
unit tests. actions_update_app_context_nfu.tests.cpp data has not been
merged because the expected results are different, as it does not do
normalization, unlike actions_get_api and actions_normalize.

Merging of that data could be done, but would require adding extra
fields to each test result, which would make the data considerably
harder to read! Thus I have left it alone for now, just merged the
struct, which is still a win.

Fixes: #15913
2026-05-07 12:31:19 +02:00
Marc Durdin
a3de441eda chore(core): add test for NFD context deleting one combining mark
Relates-to: #15913
2026-05-06 15:11:59 +02:00
Marc Durdin
40d36f8e2c chore(core): add cross-reference between ldml_test_source and kmx_test_source
Relates-to: #15913
2026-05-06 15:09:25 +02:00
Marc Durdin
f7e210beb0 chore(core): cleanup state_context_api.tests.cpp
* Rename citems and eliminate shadowed class member
* Cleanup is_identical_context and related helper functions and make
  consistent name and signature, to assert_identical_context.
* Use clearer variable names for expected and actual values.

Relates-to: #15913
2026-05-06 14:47:15 +02:00
Marc Durdin
86571de22f chore(core): cleanup compare_debug_items unit test helper
Relates-to: #15913
2026-05-06 14:27:51 +02:00
Marc Durdin
5da3b4effc chore(core): cleanup transforms.tests.cpp
1. Rename various shorthand variables
2. Split simple tests into separate Google Test cases (have not tackled
   the more complex tests which have loops and/or setup)
3. Remove redundant logging from simple tests

Relates-to: #15913
2026-05-06 14:19:05 +02:00
Marc Durdin
410a4824bc chore(core): use ASSERT_FALSE and ASSERT_TRUE where possible
Relates-to: #15913
Test-bot: skip
2026-05-06 14:01:18 +02:00
Marc Durdin
08891bb3a2 chore(core): address review comments on unit tests
Test-bot: skip
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2026-05-06 12:09:19 +02:00
Marc Durdin
63c2ed823f chore(core): avoid emitting control chars into junit.xml 2026-04-28 15:48:49 +02:00
Marc Durdin
9853f29046 chore(core): address memory leak for embedded_test_source 2026-04-28 14:47:33 +02:00
Marc Durdin
d61e5bbb18 refactor(core): clean up unit tests
Consolidate test frameworks and cleanup, including:
* all tests use Google Test
* reorganize folders, esp. kmnkbd -> api
* move all api tests into api folder
* replace references to test_assert or test_color with gtest equivalents
* leverage gtest patterns to remove boilerplate code
* dramatically simplify meson.build files and localize variables
* move shared helper code into helpers/ folder
* make test names unique and add gtest protocol for reporting back to
  teamcity

Fixes:
* CLDR test keyboards had invalid unicodeset escapes (needs to be raised
  upstream also) - was not failing tests because files were not loading
  but returning success

Test-bot: skip
2026-04-28 12:17:44 +02:00
Marc Durdin
0fb2cd2dc6 chore: Merge branch 'epic/web-core' into epic/embed-osk-in-kmx 2026-04-17 19:01:15 +02:00
Marc Durdin
0f57b8a77c chore(core): Merge branch 'epic/embed-osk-in-kmx' into chore/core/remove-jsonpp
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
2026-04-17 09:12:37 +02:00
Marc Durdin
fef4236cbd
Merge pull request #15833 from keymanapp/chore/core/embed-osk/move-test-helpers
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run
chore(core): move test helpers into helpers/ folder 🔱
2026-04-17 06:17:38 +10:00
Marc Durdin
8461ec4330 chore(core): address review comments
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2026-04-16 10:06:15 +02:00
Marc Durdin
35e09caf64 chore(core): remove jsonpp
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
jsonpp was being used only in a single unit test, and so this was a lot
of overhead and complexity for very little benefit. We may want to add
some more unit tests in the future for state_api.tests.cpp to do a
deep comparison of the state?

Test-bot: skip
2026-04-11 07:39:56 +02:00
Marc Durdin
596aae6e40 chore(core): move keyboard_api and options_api tests to gtest 2026-04-10 11:39:01 +02:00
Marc Durdin
b40012de23 chore(core): move test helpers into helpers/ folder
Test-bot: skip
2026-04-09 12:16:15 +02:00
Marc Durdin
a5c09f40a1 chore(core): fixup test keyboard paths 2026-03-27 10:52:34 +01:00
Marc Durdin
fb160b3955 chore(core): adjust paths for ldml test keyboards 2026-03-27 10:31:58 +01:00
Marc Durdin
8311c65077
Merge branch 'epic/web-core' into auto/A19S25-merge-master-into-web-core 2026-03-27 16:30:55 +11:00
Marc Durdin
ab23c12558
Merge branch 'epic/embed-osk-in-kmx' into auto/A19S25-merge-master-into-embed-osk-in-kmx 2026-03-27 16:27:19 +11:00
Marc Durdin
70c54b0b40 chore: Merge branch 'epic/web-core' into auto/A19S24-merge-master-into-web-core
Some checks are pending
Keyman Build Summary / Summarize build status checks (push) Waiting to run
2026-03-16 04:49:38 +01:00
Marc Durdin
b6b10d1a09 chore: Merge branch 'epic/embed-osk-in-kmx' into auto/A19S24-merge-master-into-embed-osk-in-kmx 2026-03-15 07:42:03 +01:00