Commit graph

319 commits

Author SHA1 Message Date
Eberhard Beilharz
1389d40965
Merge branch 'master' into change/web/11878_remove-es5 2024-07-31 15:28:38 +02:00
Joshua Horton
980ed88355
Merge pull request #11876 from keymanapp/fix/web/low-probability-exact-matching
feat(web): check for low-probability exact + exact-key correction matches 📚
2024-07-25 10:10:49 +07:00
Eberhard Beilharz
afe25eda24
change(web): remove support for es5
Fixes: #11878
2024-07-04 20:49:30 +02:00
Eberhard Beilharz
f7d6ebd6e1
refactor(web): fix TypeScript errors and warnings
Previously we didn't pre-compile this code and so we didn't notice these
errors and warnings.
2024-07-02 18:54:26 +02:00
Eberhard Beilharz
587c7094c7
refactor(web): fix TypeScript errors/warnings 2024-07-02 18:54:25 +02:00
Joshua A. Horton
4822b27c52 chore(web): update mtnt manual-text fixture 2024-06-28 12:51:13 +07:00
Joshua A. Horton
8841dd9ee2 chore(web): define common timeout variable for automated testing
Fixes: #11499
2024-06-20 11:43:11 +07:00
Joshua A. Horton
b1c908dee9 fix(web): prevent desktop OSK crash when addKeyboards is called before engine init
Fixes: #11785
Fixes: KEYMAN-WEB-KC
2024-06-14 13:53:51 +07:00
Joshua A. Horton
13476d48c8 change(web): precompile all TS-based tests 2024-06-06 15:48:58 +07:00
Joshua A. Horton
a94c5115a8 chore(web): enforces strict function types in web/ 2024-05-29 10:46:32 +07:00
Joshua A. Horton
6591c61eeb chore(web): enforces noImplicitAny for app/browser and app/webview 2024-05-29 10:43:11 +07:00
Joshua A. Horton
0b05766efb chore(web): removes web/ unused locals 2024-05-29 09:24:32 +07:00
Joshua Horton
7c348872f3
Merge pull request #11300 from keymanapp/chore/web/web-test-runner-trials
chore(web): finalization for replacement of Karma with Web Test Runner 🏃
2024-05-23 07:42:03 +07:00
Joshua Horton
2237f8a6dd
change(web): better assertion definitions, per code review
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2024-05-22 21:57:53 +07:00
Joshua A. Horton
1207c37898 chore(web): drops removed testing dependencies 2024-05-15 15:43:51 +07:00
Joshua A. Horton
9d5be7adea chore(web): removes unreferenced test-utils code 2024-05-15 15:42:18 +07:00
Joshua A. Horton
2f864e82b0 chore(web): minor wtr config cleanup 2024-05-15 15:42:03 +07:00
Joshua A. Horton
a31fa36ec0 chore(web): converts 'integrated' (e2e-ish) Web auto-tests to TS 2024-05-15 15:34:12 +07:00
Joshua A. Horton
40d01c25f2 chore(web): main + child project Web tests - local vs CI reporting 2024-05-15 15:34:12 +07:00
Joshua A. Horton
14d42de3a9 chore(web): drops global concurency restriction in favor of WebKit-specific restriction 2024-05-15 15:34:11 +07:00
Joshua A. Horton
55f1ea2b8d chore(web): converts web end-to-end style tests 2024-05-15 15:27:46 +07:00
Joshua A. Horton
a73bc4a2ee chore(web): mild config cleanup 2024-05-15 15:24:16 +07:00
Joshua A. Horton
c6ba1441b4 chore(web): simple tsconfig.json for tests' package resolution 2024-05-15 15:24:16 +07:00
Joshua A. Horton
9a426b18ee fix(web): dom tests do not need precompilation 2024-05-15 15:24:15 +07:00
Joshua A. Horton
7d4639f8c4 chore(web): converts 'dom' tests to TS, drops unused helpers 2024-05-15 15:24:14 +07:00
Joshua A. Horton
6c8344c9d4 chore(web): main + child project Web tests - local vs CI reporting for 'dom' integration tests 2024-05-15 15:23:58 +07:00
Joshua A. Horton
8c6e8c5da9 chore(web): converts element-wrapper page-integration tests 2024-05-15 15:08:20 +07:00
Joshua A. Horton
87aafa3335 chore(web): web 'dom' test stability-reporter link-in 2024-05-15 15:08:19 +07:00
Joshua A. Horton
f324d1ed53 chore(web): finalizes conversion of all test/auto/dom Web auto-tests 2024-05-15 15:08:19 +07:00
Joshua A. Horton
6f6a4f2f34 chore(web): converts engine/osk test/auto/dom tests 2024-05-15 15:08:18 +07:00
Joshua A. Horton
f5ac2eae53 chore(web): converts engine/package-cache page-integration tests 2024-05-15 15:08:18 +07:00
Joshua A. Horton
84d89760e0 chore(web): converts engine/element-wrapper page-integration tests 2024-05-15 15:08:17 +07:00
Joshua A. Horton
703e4d1403 fix(web): fixes app/browser headless-test mocking broken during 'dom'-test conversion 2024-05-15 15:08:17 +07:00
Joshua A. Horton
55f2cd00bb chore(web): converts app/browser keyboard/context-management page-integration tests 2024-05-15 15:08:16 +07:00
Joshua A. Horton
7b7689ad81 chore(web): engine/attachment, engine/dom-utils browser-integration test conversions 2024-05-15 15:08:15 +07:00
Joshua A. Horton
a34e5c9100 fix(web): EventEmitter import pattern update 2024-05-09 08:49:50 +07:00
Joshua A. Horton
3989298e69 fix(web): fixes Web's Karma test:integrated suite (last one) 2024-05-07 14:35:12 +07:00
Joshua A. Horton
ffba4a6f14 fix(web): regression-test test-builder adjustment 2024-05-07 14:35:12 +07:00
Joshua A. Horton
c7445984d3 fix(web): dom (single-browser) Karma test adjustments 2024-05-07 14:35:11 +07:00
Joshua A. Horton
398b9e0ae2 chore(common): drops package-specific 'chai', '@types/chai' versions
chore(web): missed leaving these out of the rebase
2024-05-07 14:35:09 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
Eberhard Beilharz
b2c3b99f68
Merge pull request #11266 from keymanapp/fix/web/subkey-menus
fix(web): Fix layout for subkey menus with unusually-sized keys
2024-04-26 10:21:44 +02:00
Eberhard Beilharz
eb9b34cdd6
fix(web): Small refactorings based on code review comments 2024-04-24 15:02:22 +02:00
Eberhard Beilharz
0e1493906e
fix(web): export internals for unit tests as separate module
Addresses code review comments.
2024-04-24 10:47:46 +02:00
Eberhard Beilharz
c5efad0ca8
fix(web): Cleanup imports
Addresses code review comments.
2024-04-23 12:38:23 +02:00
Eberhard Beilharz
23622697fb
chore(web): Update test keyboard
Add two longpress menus to the `diacritic_rota` keyboard:

- longpress on <kbd>1</kbd>: one subkey that is too wide to fit in the
  osk. Keyman is expected to resize the key so that it does fit.
- longpress on <kbd>2</kbd>: Subkeys for A-Z. Subkeys B and Y are
  double wide. The keys are expected to be displayed in multiple rows
  so that each row fits within the width. Note that there are too many
  keys so that the rows don't fit vertically.

Already existing is the longpress on <kbd>.</kbd>. Since the base
keys are wider they won't fit in one row. Keyman is expected to display
them in two rows.
2024-04-22 16:30:19 +02:00
Eberhard Beilharz
9818472c80
fix(web): Fix layout for subkey menus with unusually-sized keys
The previous code didn't check that the keys we put in a subkey menu
actually fit within the width of the osk. Additionally the subkey menu
was limited to two rows. This change checks the total width of the keys
in a row. If it gets too wide we continue in the next row.

Fixes #10126.
2024-04-22 16:30:19 +02:00
Joshua A. Horton
c4b240ac2d chore(web): applies PR suggestions 2024-04-19 09:22:03 +07:00
Joshua A. Horton
7856b7082f fix(web): default length-style parse for empty-string 2024-04-17 11:50:08 +07:00