diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2017-06-23 11:08:23 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2017-06-28 11:53:59 -0400 |
commit | 86f03a2ef8c8d094d5e7651f8d05dadb49b759b3 (patch) | |
tree | b6dc9ffe8c4d7bbd16bb9e756990f30ab2c9951d /test/harness | |
parent | 27f3452b33cb3f35c2d28d61a47a3add2007dec7 (diff) | |
download | qtdeclarative-testsuites-86f03a2ef8c8d094d5e7651f8d05dadb49b759b3.tar.gz |
harness test: dateConstants.js
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'test/harness')
-rw-r--r-- | test/harness/dateConstants.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/harness/dateConstants.js b/test/harness/dateConstants.js new file mode 100644 index 000000000..265186aef --- /dev/null +++ b/test/harness/dateConstants.js @@ -0,0 +1,25 @@ +// Copyright (c) 2017 Rick Waldron. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Including dateConstants.js will expose: + + var date_1899_end = -2208988800001; + var date_1900_start = -2208988800000; + var date_1969_end = -1; + var date_1970_start = 0; + var date_1999_end = 946684799999; + var date_2000_start = 946684800000; + var date_2099_end = 4102444799999; + var date_2100_start = 4102444800000; + +includes: [dateConstants.js] +---*/ +assert.sameValue(date_1899_end, -2208988800001); +assert.sameValue(date_1900_start, -2208988800000); +assert.sameValue(date_1969_end, -1); +assert.sameValue(date_1970_start, 0); +assert.sameValue(date_1999_end, 946684799999); +assert.sameValue(date_2000_start, 946684800000); +assert.sameValue(date_2099_end, 4102444799999); +assert.sameValue(date_2100_start, 4102444800000); |