Commit graph

369 commits

Author SHA1 Message Date
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
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
c13ebe29ce
Test basic usage of LMLayer#initialize() 2018-11-30 09:31:03 -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
Joshua A. Horton
b60deb46b1 Establishes build-agent friendly runs and reporting for LMLayer tests. 2018-11-29 10:26:18 +07:00
Joshua A. Horton
18a19734db Gets headless tests working post-reorg, fixes Windows test bug. 2018-11-29 10:12:31 +07:00
Eddie Antonio Santos
96bc08342c
Give more consistent, descriptive names to test files. 2018-11-28 15:27:14 -07:00
Eddie Antonio Santos
8404ef3c13
Comment ALL THE THINGS. 2018-11-28 14:20:09 -07:00
Eddie Antonio Santos
7bac80943d
Compile worker code and interface code into one .js file. 2018-11-27 14:53:53 -07:00
Eddie Antonio Santos
6cc20cfd83
Make LMLayer.asBlobURI() test a bit more stringent. 2018-11-27 14:28:31 -07:00
Eddie Antonio Santos
16fad9e1af
Refactor test to use LMLayer.asBlobURI(). 2018-11-27 14:22:59 -07:00
Eddie Antonio Santos
022f34c030
Implement LMLayer.asBlobURI() utility function. 2018-11-27 14:20:33 -07:00
Eddie Antonio Santos
01f09c5cf8
Test LMLayer.asBlobURI(). 2018-11-27 14:13:13 -07:00
Eddie Antonio Santos
540d37fdd9
Refactor: use LMLayer.unwrap() instead of custom code in tests. 2018-11-27 14:07:48 -07:00
Eddie Antonio Santos
897ed01829
Implement function unwrapping code. 2018-11-27 14:05:21 -07:00
Eddie Antonio Santos
d5da85fde4
Test LMLayer.unwrap() utility function. 2018-11-27 14:01:11 -07:00
Eddie Antonio Santos
6e540f6b6b
Tests Blobs in the browser only. 2018-11-27 13:53:29 -07:00
Eddie Antonio Santos
02521b1254
Tests that a blob is generated. 2018-11-27 11:20:39 -07:00
Eddie Antonio Santos
b2a16abd1a
Basic compilation. 2018-11-27 11:10:46 -07:00
Eddie Antonio Santos
91e050f84d
Begin testing main LMLayer code. 2018-11-27 11:07:10 -07:00
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