17 Commits

Author SHA1 Message Date
Gregg Tavares
d01443f38b test that AttachmentOptions uses TextureOptions in ts 2019-11-03 14:22:45 +09:00
Sophie Kirschner
c4b19520a0 Put Vec3 and Mat4 type declarations in module scope
Previously in the global scope (e.g. twgl.Vec3) and now in module scope (e.g. twgl.v3.Vec3)
2019-01-15 21:52:40 +09:00
Sophie Kirschner
80706d0dae Create a TypeScript test ("npm run testts")
"npm run test" will now run both the pre-existing "js" tests as well as the new "ts" test. Use "npm run testjs" to run only the earlier tests.

Borrows a handful of lines from code in the examples/ directory. It doesn't need to do anything interesting, it just needs to successfully compile.

The TS test is not very thorough at this point, but it's a very solid start imo.
2019-01-15 21:52:40 +09:00
Gregg Tavares
04e0cc713d fix tests 2019-01-13 02:41:13 +09:00
Gregg Tavares
2114edcdf9 hack node to test es6 modules
I really wish more was written around why node decided files must be named .mjs for node es6 modules.

They list the requirement that both `require` and `import` should be able to load both kinds of modules. Why that requirement? Why not `require` loads CJS and `import` loads ESM!??!

As it is, if you want to use modules in both node and the browser you're going to have to rename all your files to .mjs
2017-10-26 12:23:27 +09:00
Gregg Tavares
37292f1251 fix test 2017-10-07 17:54:36 +09:00
Gregg Tavares
a8bf58ceab add ortho test 2017-10-07 16:52:06 +09:00
Gregg Tavares
09f5b73fc3 fix tests to test destination same as source 2017-04-27 10:35:18 +09:00
Gregg Tavares
e0f1c2ee3a make multiply do b on the right 2016-10-21 10:59:43 +09:00
Gregg Tavares
2b585baeca add setAxis test 2016-03-03 01:13:42 +09:00
Gregg Tavares
cc5c6543f9 add more tests 2016-01-23 01:20:02 +08:00
Gregg Tavares
3f6e37ee5b add more tests 2016-01-23 00:49:04 +08:00
Gregg Tavares
9fad494c46 add more tests 2016-01-22 23:53:15 +08:00
Gregg Tavares
df397968d5 add more tests 2016-01-22 23:47:56 +08:00
Gregg Tavares
af4ec69648 add more tests 2016-01-22 05:06:58 +08:00
Gregg Tavares
2ce342d075 add more tests 2016-01-22 04:24:51 +08:00
Gregg Tavares
dd4c2e7c1f add testing infrustructure 2016-01-22 03:31:07 +08:00