Commit graph

30 commits

Author SHA1 Message Date
jahorton
70d569a589 feat(common/models): LoadMessage refactor, model load from raw string (for tests) 2020-11-06 14:23:05 +07:00
jahorton
7561f04d40 fix(common): LMLayer test case fix 2020-01-15 12:28:05 +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
6218b808dd Retools how the LMLayer adds models, fixes most headless cases. 2019-02-28 14:45:42 +07:00
Eddie Antonio Santos
0644dbeddd
In headless tests, specify a dummy model instead of a model code string. 2019-01-10 15:03:33 -07:00
Eddie Antonio Santos
c9d3b2eac8
Use sinon's failure reporting instead of ad hoc function. 2019-01-10 15:01:31 -07:00
Eddie Antonio Santos
bf60ea5e6d
Refactor: move global test helpers to unit_tests/helpers.js. 2019-01-10 14:58:00 -07:00
Eddie Antonio Santos
9160d9b175
Move full prediction tests to integration tests. 2019-01-09 11:42:53 -07:00
Eddie Antonio Santos
43c8705c51
Make some testing TODOs and make way for new prediction interface. 2019-01-07 14:32:38 -07:00
Eddie Antonio Santos
140efa7dc7
Require the capabilities object in the initialize message. 2018-11-30 13:35:40 -07:00
Joshua A. Horton
cf13caa98e Merge branch 'lmlayer-init' into lmlayer-build-reorg 2018-11-29 23:35:37 +07:00
Joshua A. Horton
18a19734db Gets headless tests working post-reorg, fixes Windows test bug. 2018-11-29 10:12:31 +07:00
Eddie Antonio Santos
8404ef3c13
Comment ALL THE THINGS. 2018-11-28 14:20:09 -07:00
Eddie Antonio Santos
67a95d3a01
Remove test that uses eval(). 2018-11-19 17:25:04 -07:00
Eddie Antonio Santos
a65f3b18fe
Extract helper function: lastMessageAsString(). 2018-11-19 14:25:22 -07:00
Eddie Antonio Santos
ef3e718639
Raise an error when sent a message other than 'initialize' on instantiation. 2018-11-19 13:30:39 -07:00
Eddie Antonio Santos
aac62264b2
Test for error when doing something other than initialize. 2018-11-19 13:27:11 -07:00
Eddie Antonio Santos
b1c38bc3d3
Configuration requires maxRightContextCodeUnits to be set. 2018-11-19 13:17:01 -07:00
Eddie Antonio Santos
5b682a5719
Test that a default configuration is set. 2018-11-19 13:02:59 -07:00
Eddie Antonio Santos
493b076718
Pass in a dummy model in tests. 2018-11-19 12:58:47 -07:00
Eddie Antonio Santos
53c78cc134
Test for calling of model factory function. 2018-11-19 12:53:06 -07:00
Eddie Antonio Santos
ef3a93fd4a
Remove usage of importScripts(). 2018-11-19 12:35:48 -07:00
Eddie Antonio Santos
abe6bad3b3
Mock importScripts() for every existing test case. 2018-11-19 11:05:12 -07:00
Eddie Antonio Santos
324764c1bd
Test for mocking importScripts; spruce up tests. 2018-11-19 10:56:01 -07:00
Eddie Antonio Santos
84257770da
Implement .install() static method. 2018-11-19 10:42:43 -07:00
Eddie Antonio Santos
0a065f22de
Test .install() static method. 2018-11-19 10:38:18 -07:00
Eddie Antonio Santos
eaab622b4a
Merge remote-tracking branch 'origin/lmlayer-init' into lmlayer-rewrite-stage2 2018-11-19 09:22:05 -07:00
Eddie Antonio Santos
f8919ad847
Rename 'worker-initialization.js' 2018-11-19 09:04:00 -07:00
Renamed from common/predictive-text/unit_tests/headless/worker-intialization.js (Browse further)