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
|
3c086a8ef6
|
Fixes LMLayer outer-layer init tests.
|
2019-03-04 08:28:17 +07:00 |
|
Joshua A. Horton
|
2f5b48f625
|
Reinstates the basic headless prediction test.
|
2019-02-28 15:04:36 +07:00 |
|
Joshua A. Horton
|
6218b808dd
|
Retools how the LMLayer adds models, fixes most headless cases.
|
2019-02-28 14:45:42 +07:00 |
|
Joshua A. Horton
|
fb38399833
|
Adjusted models and their direct tests to be namespace-compatible.
|
2019-02-28 12:21:18 +07:00 |
|
Eddie Antonio Santos
|
43371da774
|
Test predicting after a word.
|
2019-01-18 13:34:51 -07:00 |
|
Eddie Antonio Santos
|
7e8dcab305
|
Test for predicting in an empty buffer.
|
2019-01-18 13:23:29 -07:00 |
|
Eddie Antonio Santos
|
2c8237c379
|
Implement simple prefix search for a single word.
|
2019-01-18 13:00:15 -07:00 |
|
Eddie Antonio Santos
|
bc3b222585
|
Test prediction within a word.
|
2019-01-17 16:01:43 -07:00 |
|
Eddie Antonio Santos
|
4abbbc41a5
|
Suggest prefix via exhaustive search over word list.
|
2019-01-17 14:42:59 -07:00 |
|
Eddie Antonio Santos
|
198b6a1e3e
|
Test prefix queries.
|
2019-01-17 13:43:22 -07:00 |
|
Eddie Antonio Santos
|
d6b2b96621
|
Create stub for word list model.
|
2019-01-17 11:09:06 -07:00 |
|
Eddie Antonio Santos
|
8e336fe846
|
Return early when rejecting a reused token.
|
2019-01-16 15:06:19 -07:00 |
|
Eddie Antonio Santos
|
6106d11c07
|
Test token reuse does not overwrite previous token's promise callbacks.
|
2019-01-16 15:04:04 -07:00 |
|
Eddie Antonio Santos
|
c9ff3fe0c3
|
Test that reusing a token should reject the promise.
|
2019-01-16 14:06:25 -07:00 |
|
Eddie Antonio Santos
|
375cce7cab
|
require() fixture in headless unit tests.
|
2019-01-15 09:53:42 -07:00 |
|
Eddie Antonio Santos
|
eb45efe4d0
|
Change PromiseStore#keep() API: call resolve() immediately instead of returning the callback.
|
2019-01-14 14:26:09 -07:00 |
|
Eddie Antonio Santos
|
fb3f924cee
|
Move randomToken() to helpers.
|
2019-01-14 13:22:57 -07:00 |
|
Eddie Antonio Santos
|
7b1eb53111
|
Test send back token in predict/suggestions.
|
2019-01-14 13:06:04 -07:00 |
|
Eddie Antonio Santos
|
a1586c984f
|
Use more robust rejection assertion.
|
2019-01-14 11:50:11 -07:00 |
|
Eddie Antonio Santos
|
a26f9b1c5d
|
Test PromiseStore.break().
|
2019-01-14 10:51:25 -07:00 |
|
Eddie Antonio Santos
|
be789f05e9
|
Test PromiseStore#keep().
|
2019-01-14 10:46:23 -07:00 |
|
Eddie Antonio Santos
|
a40478e1c2
|
Complete PromiseStore#make() test.
|
2019-01-14 10:27:41 -07:00 |
|
Eddie Antonio Santos
|
cceec4ab04
|
Add promise store and start to test it.
|
2019-01-14 10:23:59 -07:00 |
|
Eddie Antonio Santos
|
d4d84b757a
|
Change dummy model suggestions to be consistent with documentation.
|
2019-01-11 15:30:45 -07:00 |
|
Eddie Antonio Santos
|
39aa7b6ebe
|
Place { on same line as (.
|
2019-01-11 11:19:24 -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
|
f2b1335c97
|
LMLayerWorker [message: predict] works.
|
2019-01-10 14:35:23 -07:00 |
|
Eddie Antonio Santos
|
94a8536400
|
Fix test assertion... again.
|
2019-01-10 14:31:56 -07:00 |
|
Eddie Antonio Santos
|
c35250c358
|
Fix how test was sending model.
|
2019-01-10 14:19:06 -07:00 |
|
Eddie Antonio Santos
|
3bae3faf5e
|
Change interfaces to allow for the dummy model.
|
2019-01-10 14:11:31 -07:00 |
|
Eddie Antonio Santos
|
a2330c7115
|
Create test for LMLayerWorker#predict().
|
2019-01-10 09:11:18 -07:00 |
|
Eddie Antonio Santos
|
9160d9b175
|
Move full prediction tests to integration tests.
|
2019-01-09 11:42:53 -07:00 |
|
Eddie Antonio Santos
|
14deb11008
|
Minor tweaks to dummy worker unit tests.
|
2019-01-09 11:17:47 -07:00 |
|
Eddie Antonio Santos
|
88519d1497
|
Implement DummyModel future.
|
2019-01-08 15:27:55 -07:00 |
|
Eddie Antonio Santos
|
3f99dbb118
|
Test dummy model suggestion futures.
|
2019-01-08 15:20:59 -07:00 |
|
Eddie Antonio Santos
|
cc8a6f61e3
|
Test for injectable suggestions.
|
2019-01-08 13:54:45 -07:00 |
|
Eddie Antonio Santos
|
4939a93773
|
Test for depenency-injected configuration.
|
2019-01-08 13:21:53 -07:00 |
|
Eddie Antonio Santos
|
b2becde2ae
|
Add capabilities argument to WorkerInternalModel constructor.
|
2019-01-08 13:16:04 -07:00 |
|
Eddie Antonio Santos
|
fc8f1eaa63
|
Add internal models to LMLayerWorker.models.
|
2019-01-07 14:49:11 -07:00 |
|
Eddie Antonio Santos
|
e4fba5036b
|
Test instantiation of worker-internal 'dummy' model.
|
2019-01-07 14:37:55 -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 |
|
Eddie Antonio Santos
|
75f0fd41dc
|
Test that the configuration comes back.
|
2018-11-30 12:59:15 -07:00 |
|
Eddie Antonio Santos
|
31368751e9
|
Add callAsynchronous() helper for tests.
|
2018-11-30 12:49:52 -07:00 |
|