Commit graph

60 commits

Author SHA1 Message Date
Joshua A. Horton
10e5a6bac3 chore(web): final polishing for common/predictive-text 2024-05-15 14:31:38 +07:00
Joshua A. Horton
2c24f2c653 chore(web): predictive-text brower-based tests to typescript - including some TS-exclusive syntax 2024-05-15 14:31:38 +07:00
Joshua A. Horton
7f9b1f0c35 chore(web): converts common/predictive-text browser-based tests 2024-05-15 14:31:36 +07:00
Joshua A. Horton
e4890f3d3d chore(web): deletes migrated test source 2024-05-09 09:49:49 +07:00
Joshua A. Horton
812de690d8 chore(web): fixes pred-text karma config
The upgrade to chai means that karma's 'framework' feature is no longer compatible, meaning a _little_ extra legwork is required to use it for karma browser tests.  It's just a little bit, though.

Will need to replicate this for the other packages that use karma to test, as the pattern kinda proliferated.
2024-05-07 14:35:09 +07:00
Joshua A. Horton
ace7474428 fix(web): fixes pred-text unit test instability 2024-04-22 15:40:37 +07:00
Joshua A. Horton
1b0d167d45 feat(common/models): differentiated worker constructors 2023-01-30 12:20:26 +07:00
Joshua A. Horton
66f6381f87 feat(common/models): functional lm-worker sourcemaps 2023-01-20 14:01:11 +07:00
Joshua A. Horton
00d0ef36a2 fix(common/models): lm-layer unit tests now operational again. Not elegant, but it works 2023-01-20 13:48:58 +07:00
Joshua A. Horton
43bf49d1cd change(common/models): adds optional 'testMode' param to LMLayer config 2022-10-31 09:34:22 +07:00
Joshua A. Horton
5a7840753f chore(web): centralizes test-start timeout config logic 2022-08-01 11:39:14 +07:00
jahorton
25277eaa0e chore(common/core/web): Merge branch 'master' into feat/common/core/web/input-processor-unit-tests 2020-11-10 08:27:15 +07:00
jahorton
70d569a589 feat(common/models): LoadMessage refactor, model load from raw string (for tests) 2020-11-06 14:23:05 +07:00
jahorton
07f48bdc19 fix(common/models): adjusts affected unit tests 2020-10-06 14:19:10 +07:00
jahorton
b9b0ff90b1 fix(common/lmlayer): fixes integrated unit tests 2020-04-17 09:57:35 +07:00
jahorton
510b667251 fix(common/lmlayer): patches up browser-based unit tests 2020-04-15 09:29:21 +07:00
Eddie Antonio Santos
42bc0197fb
fix(common/lmlayer): arrow fn -> fn expr (IE11 compat) 2020-04-06 11:52:14 -06:00
Eddie Antonio Santos
aa1552fbe8
fix(common/lmlayer): use IE11-friendly syntax 2020-04-06 11:30:50 -06:00
Eddie Antonio Santos
77596b2c5c
test(common/lmlayer): reproduce issue reported in community forum
https://community.software.sil.org/t/search-term-to-key-in-lexical-model-not-working-both-ways-by-default/3133
2020-04-06 09:30:28 -06:00
Eddie Antonio Santos
fea6026f71
test(common/lmlayer): add regression test for searchTermToKey 2020-04-06 09:25:50 -06:00
jahorton
4d347c3b3e fix(common): Re-enables two unit tests now functional b/c worker polyfill 2019-12-10 09:24:22 +07:00
jahorton
1fbb093262 change(common): IE unit test bypass - return -> this.skip 2019-12-06 08:27:51 +07:00
Joshua A. Horton
7cab14b4c1 fix(common): lmlayer unit test failure in IE due to wordbreaker swap 2019-12-04 08:53:20 +07:00
jahorton
7b1c03682a Bypasses IE unit test failure for wordbreaks. 2019-07-02 08:13:44 +07:00
jahorton
0a0cfd0e97 Adds integrated wordbreaking test case 2019-07-01 10:03:22 +07:00
Eddie Antonio Santos
85156d0b2a
Remove second this.timeout() call. 2019-06-03 09:26:28 -06:00
Eddie Antonio Santos
c1e88eb33c
Merge branch 'master' into lmlayer-remove-obsolete-wordlist 2019-06-03 09:22:48 -06:00
jahorton
f15e893353 Fixes test-config.js canary test. 2019-06-03 15:03:03 +07:00
jahorton
68e9dc1f3c Fixing LMLayer BrowserStack CI test configs 2019-06-03 13:42:19 +07:00
Eddie Antonio Santos
7d09c0097f
Change integration tests to use tries instead of the simple wordlist. 2019-05-28 11:24:07 -06:00
Eddie Antonio Santos
6d8ce4f2bc
Treat flakiness in 'empty buffer' test. 2019-05-17 21:32:02 -06:00
Joshua A. Horton
a8d6e50b56 Addresses more PR review concerns, renames activateModel -> loadModel. 2019-03-07 08:46:22 +07:00
Joshua A. Horton
b6cc287cb1 Renames the 'uninitialized' state to 'modelless', fixes (most?) docs. 2019-03-06 09:58:29 +07:00
Joshua A. Horton
473ed67b29 Adds a 'config' state to the LMLayer worker. 2019-03-06 09:35:46 +07:00
Joshua A. Horton
263af9c721 Addresses many of Eddie's PR review comments. 2019-03-06 08:24:57 +07:00
Joshua A. Horton
393dc5b270 LMLayer.initialize -> .activateModel, adds .deactivateModel. 2019-03-04 10:25:22 +07:00
Joshua A. Horton
320ac0901d Implements a shutdown() function on LMLayer, killing the worker. 2019-03-04 09:01:34 +07:00
Joshua A. Horton
2bf999edee Patches up the integrated tests to work with the model loading change. 2019-02-28 15:52:24 +07:00
Joshua A. Horton
d761a74823 Actually includes the files this time... 2019-02-19 08:52:31 +07:00
Eddie Antonio Santos
82ba375fb5
Enable word list model in the top-level API. 2019-01-18 14:23:16 -07:00
Eddie Antonio Santos
a042a18858
Test instantiation and usage of word list model. 2019-01-18 14:03:33 -07:00
Eddie Antonio Santos
c479d49adb
No longer allow model to be specified as source code. 2019-01-16 15:14:53 -07:00
Eddie Antonio Santos
68045361c6
Remove test for configuration-negotiation (not applicable to dummy model). 2019-01-14 14:20:24 -07:00
Eddie Antonio Santos
a83a8dfcdc
Got JSON fixtures working correctly. 2019-01-11 15:07:48 -07:00
Eddie Antonio Santos
5e389cb3f0
Export to JSON fixture; not quite working yet. 2019-01-11 11:49:06 -07:00
Eddie Antonio Santos
9c4f92c427
Adapt integration tests to use current API. 2019-01-10 16:16:56 -07:00
Eddie Antonio Santos
9160d9b175
Move full prediction tests to integration tests. 2019-01-09 11:42:53 -07:00
Eddie Antonio Santos
140efa7dc7
Require the capabilities object in the initialize message. 2018-11-30 13:35:40 -07:00
Eddie Antonio Santos
fe78283b92
Test integration of initialize() in LMLayer and Worker. 2018-11-30 13:07:50 -07:00
Eddie Antonio Santos
96bc08342c
Give more consistent, descriptive names to test files. 2018-11-28 15:27:14 -07:00