Eddie Antonio Santos
|
67a95d3a01
|
Remove test that uses eval().
|
2018-11-19 17:25:04 -07: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
|
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 |
|
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
|
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
|
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
|
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
|
1013442623
|
Test whether the LMLayerWorker can be instantiated.
|
2018-11-16 14:02:12 -07:00 |
|
Eddie Antonio Santos
|
1cf1e444d6
|
Only export class as worker's export.
|
2018-11-16 10:56:13 -07:00 |
|
Eddie Antonio Santos
|
2c92245ff1
|
Refactor sandboxed Web Worker test.
|
2018-11-15 15:20:14 -07:00 |
|
Eddie Antonio Santos
|
5200b665a1
|
Hacky way to test LMLayerWorker as if it's inside a Worker.
|
2018-11-15 15:12:14 -07:00 |
|
Eddie Antonio Santos
|
a33be397d0
|
Implement postMessage() mocking.
|
2018-11-15 14:40:19 -07:00 |
|
Eddie Antonio Santos
|
9b6c8666bb
|
Test LMLayerWorker can mock postMessage.
|
2018-11-15 14:30:23 -07:00 |
|
Eddie Antonio Santos
|
fdaf5bc5b0
|
Test whether the LMLayerWorker can be instantiated.
|
2018-11-15 14:15:58 -07:00 |
|
Eddie Antonio Santos
|
043bef5df1
|
Use chai's assert instead of Node's.
|
2018-11-15 14:11:40 -07:00 |
|
Eddie Antonio Santos
|
6148e4811d
|
Get headless TDD working for ./worker.
|
2018-11-15 13:18:41 -07:00 |
|
Eddie Antonio Santos
|
ab4fe96f43
|
Setup headless TDD environment
|
2018-11-15 13:04:48 -07:00 |
|
Joshua A. Horton
|
538b30a635
|
Addresses Darcy's PR concerns.
|
2018-11-15 10:50:09 +07:00 |
|
Joshua A. Horton
|
421f3e02ee
|
Clarified a test script comment.
|
2018-11-15 07:59:29 +07:00 |
|
Joshua A. Horton
|
83d8a244cc
|
PR review polishing
|
2018-11-14 08:15:36 +07:00 |
|
Joshua A. Horton
|
5cf8b136cb
|
Adds infrastructure for browser-based testing.
|
2018-11-12 09:34:13 +07:00 |
|
Joshua A. Horton
|
67a6113b59
|
Basic test script and rigging added for headless JS tests.
|
2018-11-12 08:36:41 +07:00 |
|