Eddie Antonio Santos
|
aac62264b2
|
Test for error when doing something other than initialize.
|
2018-11-19 13:27:11 -07:00 |
|
Eddie Antonio Santos
|
f0decd6204
|
Extact method: loadModel().
|
2018-11-19 13:20:24 -07:00 |
|
Eddie Antonio Santos
|
b1c38bc3d3
|
Configuration requires maxRightContextCodeUnits to be set.
|
2018-11-19 13:17:01 -07:00 |
|
Eddie Antonio Santos
|
2f3eb5d10e
|
Set configuration from values sent by keyboard.
|
2018-11-19 13:07:41 -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
|
748a504e14
|
Run source code passed in as 'model'
|
2018-11-19 12:58:08 -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
|
88b181286a
|
Convert Message type to OutgoingMessage.
|
2018-11-19 11:19:54 -07:00 |
|
Eddie Antonio Santos
|
963aa634d0
|
Import the model.
|
2018-11-19 11:10:41 -07:00 |
|
Eddie Antonio Santos
|
abe6bad3b3
|
Mock importScripts() for every existing test case.
|
2018-11-19 11:05:12 -07:00 |
|
Eddie Antonio Santos
|
feeb7ffbdb
|
Add need for importScripts(); but this breaks all the tests :c
|
2018-11-19 11:00:35 -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 |
|
glasseyes
|
d62f2034c6
|
compile kmn in configure step
|
2018-11-19 11:10:36 +07:00 |
|
glasseyes
|
f5115174fe
|
kmx to find tests in current dir, meson on bionic
to allow debugging it
meson 0.45 on Ubuntu bionic doesn't have configure_files:copy
or test:depends
|
2018-11-19 10:39:03 +07:00 |
|
Marc Durdin
|
396d552c81
|
[common] Add test framework and tests for keyboard options (failing right now because no implementation)
|
2018-11-19 11:14:06 +11:00 |
|
Marc Durdin
|
f0f3f355de
|
[common] kmx tests uses list of kmn files in meson.build
|
2018-11-19 08:49:46 +11:00 |
|
Marc Durdin
|
a35fdeba00
|
[common] Add nul test source (not yet tested) and build .kmx files during tests
|
2018-11-19 08:45:03 +11:00 |
|
Marc Durdin
|
13235bd623
|
[common] Remove old logging code
|
2018-11-19 07:52:06 +11:00 |
|
Marc Durdin
|
511e03bb91
|
[common] resolve hints and warnings
|
2018-11-19 07:23:31 +11:00 |
|
Marc Durdin
|
d0f84fa082
|
[common] resolve hints and warnings
|
2018-11-19 07:20:07 +11:00 |
|
Marc Durdin
|
becbfeda47
|
[common] Add <algorithm> for kmx.cpp
|
2018-11-19 06:47:56 +11:00 |
|
Marc Durdin
|
e1c83d9d33
|
[common] move inline function to header
|
2018-11-19 06:45:36 +11:00 |
|
Marc Durdin
|
8919595598
|
[common] include string.h for legacy string calls
|
2018-11-19 06:42:14 +11:00 |
|
Marc Durdin
|
bb9a8fb5ee
|
[common] Resolve some Linux build errors
|
2018-11-19 06:39:22 +11:00 |
|
Marc Durdin
|
06341d79f7
|
[common] Remove VK_ defines and cleanup warnings
|
2018-11-19 06:26:46 +11:00 |
|
Marc Durdin
|
328552fae6
|
[common] fix some build warnings, move files, remove pch.h
|
2018-11-19 06:21:48 +11:00 |
|
Eddie Antonio Santos
|
06f5bb55a5
|
Factor out cast() method.
|
2018-11-16 15:15:48 -07:00 |
|
Eddie Antonio Santos
|
86a72d4985
|
Send back a fake, but reasonable configuration.
|
2018-11-16 15:10:15 -07:00 |
|
Eddie Antonio Santos
|
0f9f8e593e
|
Test for sending back configuration.
|
2018-11-16 15:09:58 -07:00 |
|
Eddie Antonio Santos
|
10cc4999af
|
Simplify tests.
|
2018-11-16 14:55:48 -07:00 |
|
Eddie Antonio Santos
|
c8d81e64e6
|
Expect 'ready' back from protocol.
|
2018-11-16 14:49:57 -07:00 |
|
Eddie Antonio Santos
|
a027cac56f
|
Factor out creating MessageEvent in the tests.
|
2018-11-16 14:43:46 -07:00 |
|
Eddie Antonio Santos
|
0d9aa37db8
|
#onMessage() throws an error if not receiving a message.
|
2018-11-16 14:34:57 -07:00 |
|
Eddie Antonio Santos
|
b71cfa0154
|
Test that not sending 'message' throws an error.
|
2018-11-16 14:32:57 -07:00 |
|
Eddie Antonio Santos
|
dfc76eace9
|
Only export class as worker's export.
|
2018-11-16 14:05:31 -07:00 |
|
Eddie Antonio Santos
|
d5578a103f
|
Revert tsconfig.json; addresses @jahorton's comment.
|
2018-11-16 14:05:31 -07:00 |
|
Eddie Antonio Santos
|
54a1051026
|
Export for both browser; resolve typing issue.
|
2018-11-16 14:05:31 -07:00 |
|
Eddie Antonio Santos
|
01832c3a70
|
Refactor sandboxed Web Worker test.
|
2018-11-16 14:05:31 -07:00 |
|
Eddie Antonio Santos
|
b6b068f82e
|
Hacky way to test LMLayerWorker as if it's inside a Worker.
|
2018-11-16 14:05:31 -07:00 |
|
Eddie Antonio Santos
|
8900725d77
|
Comment existing methods.
|
2018-11-16 14:05:30 -07:00 |
|
Eddie Antonio Santos
|
25a9fd325f
|
Implement postMessage() mocking.
|
2018-11-16 14:05:30 -07:00 |
|
Eddie Antonio Santos
|
e9412a9226
|
Test LMLayerWorker can mock postMessage.
|
2018-11-16 14:05:30 -07:00 |
|
Eddie Antonio Santos
|
dc2e55c364
|
Scaffolding for the LMLayerWorker.
|
2018-11-16 14:05:29 -07:00 |
|
Eddie Antonio Santos
|
1013442623
|
Test whether the LMLayerWorker can be instantiated.
|
2018-11-16 14:02:12 -07:00 |
|