Commit graph

24978 commits

Author SHA1 Message Date
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
Eddie Antonio Santos
b0c2ad0f8b
Build worker, then build main. 2018-11-16 11:48:03 -07:00
Eddie Antonio Santos
1cf1e444d6
Only export class as worker's export. 2018-11-16 10:56:13 -07:00
Eddie Antonio Santos
ede432e225
Revert tsconfig.json; addresses @jahorton's comment. 2018-11-16 10:55:49 -07:00
Eddie Antonio Santos
e52221de2b
Export for both browser; resolve typing issue. 2018-11-16 10:53:49 -07:00
Eddie Antonio Santos
6583ce26dc
Use an object instead of a new class instance. 2018-11-16 10:25:28 -07:00
Eddie Antonio Santos
9cf495b58a
Merge Node + browser compatible way to export a module. 2018-11-16 10:21:59 -07:00
Joshua A. Horton
32f0dd5c65 Merge branch 'master' into ios-444-rotation-sizing 2018-11-16 15:14:45 +07:00
Joshua A. Horton
034680d9f4 Heavily reworks much of the iOS app rotation code, simplifying it. 2018-11-16 15:13:52 +07:00
Marc Durdin
27f09bbb50 [Common] Refactor and cleanup 2018-11-16 19:05:17 +11:00
Marc Durdin
4c1fc5edee [Common] Cleanup kmx integration code 2018-11-16 18:47:01 +11:00
Marc Durdin
566796eaef [Common] all but one test now passes. Refactoring to come, then cleanup 2018-11-16 13:39:35 +11:00
Joshua A. Horton
e1e22e7bcf Node + browser-friendly index.ts. 2018-11-16 09:38:53 +07:00
Marc Durdin
646c322b4c [Common] First kmx test case (currently fails, as it should) and KMX integration started 2018-11-16 11:12:56 +11: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
538393930d
Comment existing methods. 2018-11-15 14:48:24 -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
35af8a3f27
Scaffolding for the LMLayerWorker. 2018-11-15 14:20:00 -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
f87bbb4b07
Make TDD script executable. 2018-11-15 13:22:42 -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
Eddie Antonio Santos
e8a65581c8
Remove prototype's "inside Worker" code. 2018-11-15 12:20:58 -07:00
Eddie Antonio Santos
80ca77dd9c
Clarify section on predict message sequencing. Addresses @jahorton comment. 2018-11-15 09:08:42 -07:00