13 Commits

Author SHA1 Message Date
Dirkjan Ochtman
9620c8bf99 Use precise feature guards for WASM tests 2022-03-21 20:01:48 -07:00
Sydney Acksman
741b30adab Simplify JS Date <-> DateTime<Utc> conversion 2020-12-21 13:18:06 -06:00
Brandon W Maister
cf771cb5be
Give an error message when the wasm test fails (#482) 2020-09-26 11:03:14 -04:00
ShadoySV
dfa6935b82 Test fix Local::from_local_datetime for wasm 2020-08-05 13:01:25 +03:00
Brandon W Maister
073d86a3b1 Simplify math, add a js_sys test for correctness 2020-07-05 16:50:58 -04:00
Brandon W Maister
b6d7bac99a Fix wasm testing
wasm-bindgen-test and wasm-bindgen need to be different versions (0.3 and 0.2,
respectively), otherwise no tests are found([1], [2]);

This also fixes the test to and ci runner to just test in the current env/tz,
thereby requiring that js_sys returns the same timezone as the host system
thinks it is, but not otherwise trying to set the TZ.

[1]: https://users.rust-lang.org/t/wasm-bindgen-test-and-no-tests-to-run/43444
[2]: https://github.com/rustwasm/wasm-bindgen/pull/2123
2020-07-05 16:50:58 -04:00
Brandon W Maister
c2fe38cd84 clean up github workflows ui
This puts different kinds of tests in different job names, instead of
shoehorning them into the matrix.
2020-06-27 15:25:17 -04:00
coolreader18
c5973277e7
Don't do wasmbind on wasi 2019-11-26 23:57:51 -06:00
Brandon W Maister
4617e2e5ba Make the wasm-pack tests actually run 2019-09-03 22:30:39 -04:00
Brandon W Maister
2839d8d7db Put wasm-bindgen and js-sys behind a wasm-bindgen feature gate
Fixes #334
2019-09-03 09:05:15 -04:00
eV
f21b1fbf21 Fix emscripten and guard against cargo test + wasm32-unknown-unknown 2019-08-16 22:46:10 +00:00
eV
c284d7364b add conditionals so wasm tests build / run in the right places 2019-08-16 17:11:30 +00:00
eV
5d38faeb40 fix local timezone, add tests 2019-08-16 09:35:56 +00:00