Eddie Antonio Santos
|
5e389cb3f0
|
Export to JSON fixture; not quite working yet.
|
2019-01-11 11:49:06 -07:00 |
|
Eddie Antonio Santos
|
39aa7b6ebe
|
Place { on same line as (.
|
2019-01-11 11:19:24 -07:00 |
|
Eddie Antonio Santos
|
6cf84f09b5
|
Send 'predict' message to worker.
|
2019-01-10 16:23:43 -07:00 |
|
Eddie Antonio Santos
|
9c4f92c427
|
Adapt integration tests to use current API.
|
2019-01-10 16:16:56 -07:00 |
|
Eddie Antonio Santos
|
0e1cb0d55b
|
Rearrange different message type definitions.
|
2019-01-10 15:56:30 -07:00 |
|
Eddie Antonio Santos
|
f2dde2a7f9
|
Refactor: extract method: setupInitialState().
|
2019-01-10 15:39:56 -07:00 |
|
Eddie Antonio Santos
|
d943bdd54e
|
Refactor: LMLayerWorker now implements the state pattern: uninitialized and ready states.
|
2019-01-10 15:34:07 -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
|
702939a8a8
|
Upgrade to karma-browserstack-launcher@^1.4.0.
|
2019-01-08 15:30:20 -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
|
11f6685e70
|
DummyModel#predict() returns any injected suggestions immediately.
|
2019-01-08 15:18:40 -07:00 |
|
Eddie Antonio Santos
|
eb8aec564f
|
Import Transform, Context, and Suggestion types. Update predict() interface to match.
|
2019-01-08 14:51:08 -07:00 |
|
Eddie Antonio Santos
|
cc8a6f61e3
|
Test for injectable suggestions.
|
2019-01-08 13:54:45 -07:00 |
|
Eddie Antonio Santos
|
06555c3630
|
Implement simple, injectable configuration.
|
2019-01-08 13:54:36 -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
|
f07c715d06
|
Embetter comments.
|
2019-01-08 13:03:14 -07:00 |
|
Eddie Antonio Santos
|
f1c6dca02d
|
Factor out worker interfaces and types into worker-interfaces.ts.
|
2019-01-08 12:54:26 -07:00 |
|
Eddie Antonio Santos
|
26ad83d52b
|
Put dummy model into its own file.
|
2019-01-07 14:57:57 -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 |
|
Joshua A. Horton
|
ea8b1de557
|
Minor npm update, adds promise polyfill for IE.
|
2018-12-03 08:58:11 +07:00 |
|
Eddie Antonio Santos
|
c751646b93
|
Rename _resolveInitialized to _declareLMLayerReady().
|
2018-11-30 13:57:54 -07:00 |
|
Eddie Antonio Santos
|
f1382fe58c
|
Remove undeveloped "model" interface.
|
2018-11-30 13:44:58 -07:00 |
|
Eddie Antonio Santos
|
36e18e4019
|
Refactor: extract interfaces common to worker and top-level.
|
2018-11-30 13:43:29 -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
|
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 |
|
Eddie Antonio Santos
|
d6f9398ad2
|
Implement initialize callback/response.
|
2018-11-30 12:35:41 -07:00 |
|
Eddie Antonio Santos
|
ca510acd61
|
Revise tests to take fake postMessage()
|
2018-11-30 12:35:22 -07:00 |
|
Eddie Antonio Santos
|
d262c37025
|
Test sending the initialize message.
|
2018-11-30 12:10:37 -07:00 |
|
Eddie Antonio Santos
|
6ae59882bc
|
Refactor: extract createFakeWorker() in LMLayer tests.
|
2018-11-30 10:55:57 -07:00 |
|
Eddie Antonio Santos
|
ac4167d0be
|
Define initialize's interface.
|
2018-11-30 10:48:22 -07:00 |
|
Eddie Antonio Santos
|
c13ebe29ce
|
Test basic usage of LMLayer#initialize()
|
2018-11-30 09:31:03 -07:00 |
|
Eddie Antonio Santos
|
81b7510d8b
|
Implement requiring a Worker instead of a URI.
|
2018-11-29 20:07:53 -07:00 |
|
Eddie Antonio Santos
|
55ba9088be
|
Test that LMLayer consturctor takes in a worker instance.
|
2018-11-29 20:03:57 -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
|
07bac875f4
|
A bit of cleaning for test.sh.
|
2018-11-29 10:51:51 +07:00 |
|