Commit Graph

46 Commits

Author SHA1 Message Date
Alex Crichton
ed05c7b945
Fix compile on latest nightly (#489) 2018-07-17 09:11:30 -05:00
T. Nagasawa
5ce424e57b bindings for Date.prototype.setUTCXXX() (#456) 2018-07-11 09:27:59 -05:00
toversus
d2feddcf90 fix to have no impact on timezones difference 2018-07-10 23:31:25 +09:00
toversus
91d6ae5f04 binding for Date.prototype.setTime() 2018-07-10 21:46:44 +09:00
toversus
c185897eff binding for Date.prototype.setSeconds() 2018-07-10 21:45:33 +09:00
toversus
609d457301 binding for Date.prototype.setMonth() 2018-07-10 21:27:12 +09:00
toversus
a81827caf9 binding for Date.prototype.setMinutes() 2018-07-10 21:20:18 +09:00
toversus
11a58a1bd0 binding for Date.prototype.setMilliseconds() 2018-07-10 20:55:45 +09:00
toversus
524628e1e1 binding for Date.prototype.setHours() 2018-07-10 20:51:39 +09:00
toversus
d555b7f068 binding for Date.prototype.setFullYear() 2018-07-10 20:45:25 +09:00
toversus
1a8da45340 binding for Date.prototype.setDate() 2018-07-10 20:38:54 +09:00
toversus
5bfde7778d binding for Date.prototype.getUTCSeconds() 2018-07-09 18:20:04 +09:00
toversus
15d9f743ec binding for Date.prototype.getUTCMonth() 2018-07-09 18:08:38 +09:00
toversus
2e85bbd9e0 binding for Date.prototype.getUTCMinutes() 2018-07-09 18:04:20 +09:00
toversus
c260ac7c3e binding for Date.prototype.getUTCMilliseconds() 2018-07-09 17:59:15 +09:00
toversus
6aa3661e11 binding for Date.prototype.getUTCHours() 2018-07-09 17:54:19 +09:00
toversus
975818a1f6 binding for Date.prototype.getUTCFullYear() 2018-07-09 17:50:13 +09:00
toversus
ea19848691 binding for Date.prototype.getUTCDay() 2018-07-09 17:46:21 +09:00
toversus
792baefc22 binding for Date.prototype.getUTCDate() 2018-07-09 17:42:30 +09:00
toversus
d3a17d4014 binding for Date.prototype.getTimezoneOffset() 2018-07-09 17:38:38 +09:00
T. Nagasawa
056b45aeed bindings for Date.parse and Date.getXXX (#414)
* binding for Date.prototype.getHours()

* binding for Date.prototype.getMilliseconds()

* binding for Date.prototype.getMinutes()

* binding for Date.prototype.getMonth()

* binding for Date.prototype.getSeconds()

* binding for Date.prototype.getTime()

* binding for Date.parse()
2018-07-07 12:09:46 -05:00
Nick Fitzgerald
7ff90f1490 js: Return scalar types instead of Number objects
99% of the time we don't want to deal with opaque handles to `Number`
objects.
2018-07-05 13:02:40 -07:00
Michael Hoffmann
9d3b26341e Add binding for Date.prototype.getDate 2018-07-05 17:09:59 +02:00
Alex Crichton
efa4a2b8fa
Speed up Travis by running Webpack in fewer tests (#381)
* Reorganize Travis configuration

* Add a `JOB` env var descriptor to all matrix entries. Not used anywhere but is
  useful when viewing the whole build on Travis's web interface.
* Reorganize where builds are located, moving slow builds first and fast ones
  last.
* Change checking the CLI builds from `cargo build` to `cargo check`
* Use YAML references to reduce some duplication

* Print some more timing statistics for each test

* Extract `Project` helper in tests to a module

This'll help make it a bit more extensible over time. At the same time the
methods are also slightly reorganized to read more clearly from top to bottom.

* Migrate all tests away from Webpack

Wepback can take a significant amount of time to execute and when it's
multiplied by hundreds of tests that adds up really quickly! After investigating
Node's `--experimental-modules` option it looks like it's suitable for our use
so this switches all tests to using JS files (moving away from TypeScript as
well) with `--experimental-modules` with Node.

Tests will be selectively re-enabled with webpack and node.js specific output
(that doesn't require `--experimental-modules`), coming in later commits.

* Restore the node test for node.js output

Ensures it's workable as-is

* Only generate typescript with webpack

* Only read wasm files for webpack

* Skip package.json/node_modules for now

* Only generate webpack config if needed

* Start a dedicated test module for typescript

Will hopefully verify the generated Typescript compiles OK.

* Remove unneeded `node` method

* Fixup some rebase conflicts

* Don't run asmjs example on travis

* Fixup generator tests

* Attempt to fix windows

* Comment windows fix

* More test fixes

* More exclusions

* More test fixes

* Relax eslint regex

Catch mjs modules as well

* Fix eslint

* Speed up travis on examples slightly
2018-07-04 22:37:09 -05:00
Sendil Kumar N
e912b9d2a2
Merge pull request #374 from Hywan/js_test_date_locale
test(js) Fix expectations regarding given locales
2018-07-04 22:25:05 +02:00
Ivan Enderlin
f5d4751c0b
test(js) Check the types and lightly the data, but not that much.
Because NodeJS can have different i18n behaviors depending of the
version, let's keep things simple. In this case, we want to test the
types,
period. Cf. https://github.com/rustwasm/wasm-bindgen/pull/374#issuecomment-402447333
2018-07-04 16:47:51 +02:00
Marcin Baraniecki
2694dd4dee
Merge pull request #385 from toVersus/js_date
bindings for date.getDay/getFullYear
2018-07-04 14:56:22 +02:00
toversus
e95994fd19 bindings for Date.prototype.getFullYear() 2018-07-04 19:52:12 +09:00
toversus
3007e813ea bindings for Date.prototype.getDay() 2018-07-04 19:41:06 +09:00
Ivan Enderlin
54523d82ed
test(js) Fix expectations regarding given locales. 2018-07-03 14:37:38 +02:00
Ivan Enderlin
df5fec22d9
fix(js) Use f64 instead of Number. 2018-07-03 14:26:00 +02:00
Ivan Enderlin
fe4c150431
Merge branch 'master' into js_date 2018-07-03 14:12:05 +02:00
R. Andrew Ohana
9127a0419f rustfmt all the things 2018-06-27 22:42:34 -07:00
Ivan Enderlin
a4d47afda6
feat(js) Implement the Date.UTC binding. 2018-06-27 09:41:16 +02:00
Ivan Enderlin
e334c0c5af
feat(js) Implement the Date.now binding. 2018-06-27 09:40:40 +02:00
Sendil Kumar
ef27cb6392 Add date constructor 2018-06-26 16:55:40 +02:00
Sendil Kumar
f9ae7f49ad Add date to date string
fix failing test case
2018-06-26 16:55:40 +02:00
Sendil Kumar
dd3e8cc8b8 Add date to iso string 2018-06-26 16:55:40 +02:00
Sendil Kumar
8f21393c6b Add date to json 2018-06-26 16:55:40 +02:00
Sendil Kumar
be44ad8ad8 Add date to locale date string 2018-06-26 16:55:40 +02:00
Sendil Kumar
4e05bc470f Add date to locale string 2018-06-26 16:55:40 +02:00
Sendil Kumar
c0aba821d5 Add date to locale time string 2018-06-26 16:55:40 +02:00
Sendil Kumar
ca17ef8d7c Add date to string 2018-06-26 16:55:40 +02:00
Sendil Kumar
f30de17c2b Add date to time string 2018-06-26 16:55:39 +02:00
Sendil Kumar
033ba3f3a7 Add date to utc string 2018-06-26 16:55:39 +02:00
Sendil Kumar
cd189d53c4 Add date value of 2018-06-26 16:55:36 +02:00