Commit graph

3787 commits

Author SHA1 Message Date
Dr Mark C. Sinclair
67b2050d8c Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-3 2024-09-03 10:09:51 +01:00
Marc Durdin
113b4f7ac8 feat(developer): comments for kmc-generate 2024-09-03 06:20:34 +07:00
Marc Durdin
1ab1ca5d78 chore(developer): fixup tests and scripts for kmc-generate 2024-09-03 06:20:34 +07:00
Marc Durdin
db904119f3 feat(developer): unit tests for kmc-generate
Note: these are more e2e than unit tests. It may be difficult to convert
them into solid unit tests due to the way that kmc-generate works based
on templates.
2024-09-03 06:20:33 +07:00
Marc Durdin
8274d30788 feat(developer): kmc generate cleanup
Cleanup various todo items for kmc generate. Outstanding TODO item is
icon generation for .kmn.
2024-09-03 06:20:28 +07:00
Marc Durdin
2994fe2aea feat(developer): kmc-generate docs and tests started 2024-09-03 06:17:33 +07:00
Marc Durdin
939134a9a3 feat(developer): kmc-generate module
Plenty of todo items left but this is a mostly-functional module for the
kmc generate command for automatically creating keyboard and model
projects.
2024-09-03 06:15:33 +07:00
Dr Mark C. Sinclair
3ed83f8e33 chore(developer): clarify some comments in index() section of GetXStringImpl_type_i test 2024-08-29 19:24:33 +01:00
Dr Mark C. Sinclair
db06555719 fix(developer): use comma alone as seperator, and u16trim to remove white space 2024-08-29 18:40:12 +01:00
Dr Mark C. Sinclair
2c41d02c19 fix(developer): add u16trim test 2024-08-29 18:24:31 +01:00
Dr Mark C. Sinclair
03293bcede fix(developer): add u16rtrim test 2024-08-29 18:18:27 +01:00
Dr Mark C. Sinclair
6dee928362 fix(developer): add test for u16ltrim 2024-08-29 16:51:07 +01:00
Dr Mark C. Sinclair
11a9338671 fix(developer): add test for u16ltrim 2024-08-29 16:40:41 +01:00
Dr Mark C. Sinclair
c8beeb9ab4 fix(developer): add two additional space test cases for index() in GetXStringImpl_type_i test 2024-08-29 10:56:17 +01:00
Marc Durdin
038b913394
Merge pull request #12280 from keymanapp/fix/developer/12279-consistent-import-path-for-all-kmc-uses
fix(developer): make LDML import path consistent for all bundlings of kmc
2024-08-29 09:46:10 +02:00
Dr Mark C. Sinclair
2bd2697868 chore(developer): correct order of paramaters in EXPECT_EQ to expected, actual in ReportCompilerMessage test 2024-08-26 15:04:01 +01:00
Dr Mark C. Sinclair
b6282457cd chore(developer): unicode group checks in GetXStringImpl_type_u test 2024-08-26 14:55:42 +01:00
Dr Mark C. Sinclair
cb9b2c545b chore(developer): manual merging of the two GetXStringImpl_type_c tests 2024-08-26 14:37:41 +01:00
Dr Mark C. Sinclair
1fe11edb9c chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-3
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-08-26 14:19:50 +01:00
Dr Mark C. Sinclair
3cd34e260f chore(developer): add ERROR_InvalidCharacter and n1 only test cases to unicode in GetXStringImpl_type_u test 2024-08-26 12:27:46 +01:00
Dr Mark C. Sinclair
8dd236c70c chore(developer): add initial four test cases for unicode in GetXStringImpl_type_u test 2024-08-26 12:12:05 +01:00
Dr Mark C. Sinclair
8522c57b6a chore(developer): add versions where omitted from some notany() test cases 2024-08-26 11:24:19 +01:00
Dr Mark C. Sinclair
437420d534 chore(developer): add test case for nul to GetXStringImpl_type_n test 2024-08-26 11:18:54 +01:00
Dr Mark C. Sinclair
8c79a04fce chore(developer): add test case for notany() with empty store 2024-08-26 10:59:36 +01:00
Dr Mark C. Sinclair
ef4a14bd48 chore(developer): add ten test cases for notany() to GetXStringImpl_type_n test 2024-08-26 10:53:09 +01:00
Dr Mark C. Sinclair
ec5a749484 chore(developer): initial GetXStringImpl_type_n test 2024-08-26 10:30:21 +01:00
Dr Mark C. Sinclair
758a398060 chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-3
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-08-26 10:21:10 +01:00
Dr Mark C. Sinclair
fca939b172 chore(developer): Merge branch 'master' into fix/developer/12262-ensure-call-detects-invalid-store-in-kmcmplib-compiler
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-08-26 10:06:51 +01:00
Marc Durdin
89d65adad0
Merge pull request #12278 from keymanapp/fix/developer/12056-find-last-key-in-ldml-keybag-for-kvk
fix(developer): find last matching key in LDML key bag when building KVK
2024-08-26 09:09:07 +02:00
Marc Durdin
6353f926ba
chore: Update developer/src/kmc-ldml/src/compiler/visual-keyboard-compiler.ts 2024-08-26 09:09:00 +02:00
Marc Durdin
f9b0dc5300
Merge pull request #12273 from keymanapp/chore/developer/12271-extend-test-timeouts-kmc-model
chore(developer): extend timeouts for lm compiler tests to 5 secs
2024-08-26 09:08:49 +02:00
Marc Durdin
3072444d97
Merge branch 'master' into docs/developer/12270-update-build-documentation 2024-08-24 04:36:46 +02:00
Marc Durdin
f5066174cd fix(developer): make LDML import path consistent for all bundlings of kmc
The default import path is relative to ldml-keyboard-xml-reader.js. The
bundling of kmc with Keyman Developer reduces the directory tree depth,
so we move the import path to be a subdirectory of the immediate parent
directory, rather than two levels up, so that
`C:\Program Files\Keyman\Keyman Developer\kmc` can refer to
`C:\Program Files\Keyman\Keyman Developer\import` when kmc is bundled.

Fixes: #12279
2024-08-24 10:28:48 +08:00
Marc Durdin
d028124ca9 fix(developer): find last matching key in LDML key bag when building KVK
Fixes: #12056
2024-08-24 00:15:33 +02:00
Marc Durdin
8457f9527a chore(developer): extend timeouts for lm compiler tests to 5 secs
Fixes: #12271
2024-08-23 17:53:48 +02:00
Marc Durdin
74f5865745 docs(developer): update build documentation to refer to build.sh
Fixes: #12270
2024-08-23 15:10:43 +02:00
Marc Durdin
046bd25f63 chore(developer): improve build order of operations so builds work on new machines 2024-08-23 07:47:53 +02:00
Dr Mark C. Sinclair
2de7c26950 chore(developer): remove unnecesary local variables from two any test cases 2024-08-22 17:36:00 +01:00
Dr Mark C. Sinclair
c1c4c63b46 chore(developer): remove unnecesary local variables from two baselayout test cases 2024-08-22 17:34:41 +01:00
Dr Mark C. Sinclair
f92b2e1fd6 chore(developer): remove unnecesary local variables from two if test cases 2024-08-22 17:32:49 +01:00
Dr Mark C. Sinclair
64193bd604 chore(developer): remove unnecessary local variables in three index test cases 2024-08-22 17:29:02 +01:00
Dr Mark C. Sinclair
242ccee4f2 chore(developer): remove unnecessary local variables in two outs test cases 2024-08-22 17:25:22 +01:00
Dr Mark C. Sinclair
bd1d593a66 chore(developer): add a valid context test case, and remove unnecessary local variables for two others in GetXStringImpl_type_c test 2024-08-22 17:22:53 +01:00
Dr Mark C. Sinclair
a09dcffb03 chore(developer): Merge branch 'master' into fix/developer/12262-ensure-call-detects-invalid-store-in-kmcmplib-compiler
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-08-22 17:13:00 +01:00
Dr Mark C. Sinclair
5fc7a26702 chore(developer): remove test cases for call() in GetXStringImpl_type_c test moved to #12263 2024-08-22 15:26:59 +01:00
Dr Mark C. Sinclair
862f0d9191 fix(developer): add test cases for spaces before and after valid store in call in GetXStringImpl_type_c test 2024-08-22 15:21:01 +01:00
Dr Mark C. Sinclair
b608e1ca84 fix(developer): add ERROR_InvalidCall and first valid test case to GetXStringImpl_type_c test 2024-08-22 15:15:32 +01:00
Dr Mark C. Sinclair
75508f46b4 fix(developer): add ERROR_StoreDoesNotExist test cases to GetXStringImpl_type_c test 2024-08-22 11:43:03 +01:00
Dr Mark C. Sinclair
7e2f797dd8 fix(developer): move check on store name search to just after search 2024-08-22 11:41:02 +01:00
Dr Mark C. Sinclair
b721ff6d5d fix(developer): add call test cases from #11990 to GetXStringImpl_type_c test 2024-08-22 11:19:37 +01:00