Commit graph

24978 commits

Author SHA1 Message Date
glasseyes
dfd327c129 change to current files in POTFILES.in 2018-11-20 15:58:00 +07:00
glasseyes
16dd44047e make kmx test optional
Debian and other automated buildds won't have kmcomp.exe so
don't let that fail the build
2018-11-20 13:00:09 +07:00
Eddie Antonio Santos
17dfd2d76e
Merge branch 'lmlayer-init' into lmlayer-sans-import-scripts 2018-11-19 19:58:35 -07:00
Daniel Glassey
1a7ce3f380
Merge branch 'windows-refactor-kmprocess-for-kpapi' into windows-refactor-kmprocess-for-kpapi-daniel 2018-11-20 09:39:44 +07:00
Eddie Antonio Santos
c8454f3ba5
Merge pull request #1330 from keymanapp/lmlayer-rewrite-stage2
[LMLayer]: Stage 2 rewrite: greater implementation of inside-worker code.
2018-11-19 18:43:19 -07:00
Eddie Antonio Santos
0dfa36a3b6
Attempt to clarify comment on LMLayerWorker.install(). 2018-11-19 18:35:58 -07:00
Eddie Antonio Santos
a253960ae2
Merge pull request #1327 from keymanapp/lmlayer-build.sh
[LMLayer] Build worker, then build main.
2018-11-19 18:27:00 -07:00
Marc Durdin
37f424f090 [common] Working options model. Introduces some gunk around state and options which should be reviewed with TSE 2018-11-20 12:19:43 +11:00
Eddie Antonio Santos
67a95d3a01
Remove test that uses eval(). 2018-11-19 17:25:04 -07:00
Eddie Antonio Santos
d774f08cc7
Clarify comment. 2018-11-19 17:23:43 -07:00
Eddie Antonio Santos
5e3f59f68b
Fix invalid invocation. 2018-11-19 17:05:50 -07:00
Marc Durdin
09620cb311 [common] Basic options functionality (rework to match api model) 2018-11-20 10:00:29 +11:00
Eddie Antonio Santos
d1f8d71026
Install an LMLayerWorker when in a Worker scope. 2018-11-19 15:29:26 -07:00
Eddie Antonio Santos
6c5ea6fea9
Write integration test for LMLayerWorker code. 2018-11-19 15:16:27 -07:00
Eddie Antonio Santos
bb090a3c62
Include the generated worker in the Karma browser tests. 2018-11-19 14:52:05 -07:00
Eddie Antonio Santos
6183f955c1
Build embedded worker in two-stage compilation process. 2018-11-19 14:51:31 -07:00
Eddie Antonio Santos
a65f3b18fe
Extract helper function: lastMessageAsString(). 2018-11-19 14:25:22 -07:00
Eddie Antonio Santos
e7fe927718
Clean up recently imported interfaces. 2018-11-19 13:52:19 -07:00
Eddie Antonio Santos
bb25564c92
Add a bunch of types that may or may not be useful. 2018-11-19 13:41:10 -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
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
6ff64b8605
Merge branch 'lmlayer-init' into lmlayer-build.sh 2018-11-19 09:10:49 -07:00
Eddie Antonio Santos
00b43813d1
Merge pull request #1325 from keymanapp/lmlayer-rewrite
[LMLayer] Rewrite worker code: Stage 1: constructor and onMessage()
2018-11-19 09:04:27 -07:00
Eddie Antonio Santos
f8919ad847
Rename 'worker-initialization.js' 2018-11-19 09:04:00 -07:00
Eddie Antonio Santos
fb01348f4a
Merge pull request #1324 from keymanapp/lmlayer-tdd
[LMLayer] Test-driven development setup for headless tests
2018-11-19 08:46:52 -07:00
glasseyes
d5be21cb82 Merge branch 'master' into linux-ibus-keyman 2018-11-19 11:13:25 +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