Nim/tests/js
flywind 1e5dd9022b
[js] add testcase for array indexDefect and remove todo (#19838)
* remove unused opcSubstr

* [js] add testcase for array indexDefect

* Revert "remove unused opcSubstr"

This reverts commit cb461f2545234d62c1e0b83318f3e5495c97de52.
2022-06-10 20:33:44 +02:00
..
readme.md tests/tuples/ttuples_issues.nim: test on all backends + various improvements (#16907) 2021-02-02 20:17:13 +01:00
t6612.nim
t7109.nim follow #15818 and close #7109 (#15823) 2020-11-02 18:27:39 +01:00
t7127.nim add testcase for #7127 (#15780) 2020-10-30 03:54:39 +01:00
t7224.nim fix js stacktraces, unify all file,line,col formatting into a single function (#14230) 2020-05-05 14:56:15 +02:00
t7249.nim
t7534.nim
t8231.nim avoid #8231, bitwise move to mul,div (#15070) 2020-08-25 09:58:32 +02:00
t8821.nim fix #8821 (#15809) 2020-11-02 10:41:44 +01:00
t8914.nim
t9410.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
t11166.nim fixed dot operator recursive loop & macro suggest (#16922) 2021-02-15 09:51:05 +01:00
t11353.nim Sets need copying in JS (#11392) 2019-10-02 21:01:59 +02:00
t11354.nim fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… (#15078) 2020-07-27 21:13:49 +02:00
t11697.nim fixes #14112, tests for #12892, #12671, #11697 (#14125) 2020-04-26 10:12:16 +02:00
t12223.nim Fix jsgen bug with uninitialized seq (#12500) [backport] 2019-10-24 11:17:01 +02:00
t12303.nim fix #12303 (#15964) 2020-11-14 12:51:23 +01:00
t12672.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
t14153.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
t14570.nim Fix #14570 (#14571) 2020-06-06 09:31:19 +02:00
t17177.nim fix #17177 (#17243) 2021-03-03 11:57:34 +01:00
tarrayboundscheck.nim Fix negative indexed arrays for JS, refs #13966 (#14152) 2020-04-29 08:59:08 +02:00
tasyncjs.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tasyncjs_bad.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tasyncjs_pragma.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tbasics.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tbigint_backend.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tbyvar.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tclosures.nim fix noDecl => nodecl (#16760) 2021-01-20 11:08:42 +01:00
tcodegendeclproc.nim
tcodegendeclvar.nim
tconsole.nim Ref #14075 - enable two tests which seem to now be passing locally on FreeBSD. (#14076) 2020-04-22 23:35:22 +01:00
tcopying.nim fixes #9674 [backport] (#13143) 2020-01-14 16:20:48 +01:00
tcsymbol.nim undefine C symbols in JS backend [backport:1.6] (#19437) 2022-02-04 17:10:24 -05:00
tderef.nim
tdiscard.nim fix #15638 (#15789) 2020-10-30 09:16:47 +01:00
tdollar_float.nim $(a: float) now works consistently in nim js, avoiding printing floats as ints (#14134) 2020-04-27 17:33:03 +02:00
temptyseq.nim Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
tenumhole.nim
tenumnegkey.nim
tenumoffset.nim
test1.nim clean up deprecated stuff and unused imports in tests (#13059) 2020-01-07 09:49:08 +01:00
test2.nim style fix: change 'JS' to 'js' to make it consistent (#13168) 2020-01-16 14:14:03 +01:00
testmagic.nim
testobjs.nim
testtojsstr.nim
tfieldchecks.nim deprecate unsafeAddr; extend addr (#19373) 2022-01-16 11:08:38 +01:00
tfloatround.nim
tglobal.nim [closes #11625 and closes #2488]add global and threadvar(with --threads:off mode ) pragmas supports for JS backend (#15772) 2020-10-30 15:34:07 +01:00
timplicit_nodecl.nim
tindexdefect.nim [js] add testcase for array indexDefect and remove todo (#19838) 2022-06-10 20:33:44 +02:00
tjsffi.nim js: improve tests + some docs (#16727) 2021-01-16 12:08:40 +01:00
tjsffi_old.nim js: improve tests + some docs (#16727) 2021-01-16 12:08:40 +01:00
tjshello.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tjshello_stacktrace.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tlent.nim Optimize lent in JS [backport:1.6] (#19393) 2022-01-17 13:03:40 +01:00
tmangle.nim fix #14350, cstrings in JS init as null (#14355) 2020-05-15 10:07:30 +02:00
tmodify_cstring.nim fix #14157 (#15877) 2020-11-12 09:20:10 +01:00
tnativeexc.nim
tnilstrs.nim [backport:1.4] JS cstring null fixes (#16979) 2021-02-11 17:04:32 +01:00
tobjfieldbyvar.nim
tos.nim envPairs works in vm, nims (#18615) 2021-09-29 09:32:39 +02:00
trefbyvar.nim
trepr.nim fix #16025 repr now consistent: does not insert trailing newline (#16034) 2020-11-19 12:12:51 -08:00
treprinifexpr.nim fix #15651 (#15800) 2020-10-31 12:06:13 +01:00
tseqops.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tstdlib_imports.nim Use openarray of bytes in md5 (#19307) 2022-01-15 13:19:05 +01:00
tstdlib_various.nim fix #16993, #18054, #17835 runnableExamples now works with templates and nested templates (#18082) 2021-06-02 09:02:14 -07:00
tstreams.nim StringStream & more stdlib modules support for JS/NimScript (#14095) 2020-04-28 19:44:52 +02:00
tstring_assignment.nim
tstringitems.nim
ttempgen.nim many bugfixes for js (#14158) 2020-04-29 20:55:09 +02:00
tthismangle.nim
ttryexceptnewsyntax.nim
ttypedarray.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tunion.nim closes #7658 (#15784) 2020-10-30 09:58:55 +01:00
tunittest_error.nim fix #14475; unittest.require now works with nim c; require and check now works with -d:nodejs (#14676) 2020-07-14 13:14:32 +02:00
tunittest_error2.nim fix CI failure(upstream changes) (#18820) 2021-09-08 11:47:14 +02:00
tvarargs.nim
twritestacktrace.nim add simple writeStackTrace for JS backend (#16016) 2020-11-24 19:45:06 +01:00

notes

Prefer moving tests to a non-js directory so that they get tested across all backends automatically. Ideally, tests/js should be reserved to code that only makes sense in js.

Note also that tests for a js specific module (e.g.: std/jsbigints) belong to tests/stdlib, (e.g.: tests/stdlib/tjsbigints.nim)