Welcome! Log In Create A New Profile

Advanced

[njs] Time zone name has been removed from unit tests.

June 23, 2017 10:44AM
details: http://hg.nginx.org/njs/rev/d882561d50e8
branches:
changeset: 377:d882561d50e8
user: Igor Sysoev <igor@sysoev.ru>
date: Fri Jun 23 15:49:09 2017 +0300
description:
Time zone name has been removed from unit tests.

diffstat:

njs/test/njs_unit_test.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r e33bea39c650 -r d882561d50e8 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c Fri Jun 23 15:27:28 2017 +0300
+++ b/njs/test/njs_unit_test.c Fri Jun 23 15:49:09 2017 +0300
@@ -6361,17 +6361,16 @@ static njs_unit_test_t njs_test[] =
{ nxt_string("var d = new Date(2011, 5, 24, 18, 45); d.valueOf()"),
nxt_string("1308895200000") },

- { nxt_string("var d = new Date(2011, 5, 24, 18, 45); d"),
- nxt_string("Fri Jun 24 2011 18:45:00 GMT+1245 (CHAST)") },
-
- { nxt_string("var d = new Date(2011, 5, 24, 18, 45); d.toString()"),
- nxt_string("Fri Jun 24 2011 18:45:00 GMT+1245 (CHAST)") },
+ { nxt_string("var d = new Date(2011, 5, 24, 18, 45);"
+ "d.toString().slice(0, 33)"),
+ nxt_string("Fri Jun 24 2011 18:45:00 GMT+1245") },

{ nxt_string("var d = new Date(2011, 5, 24, 18, 45); d.toDateString()"),
nxt_string("Fri Jun 24 2011") },

- { nxt_string("var d = new Date(2011, 5, 24, 18, 45); d.toTimeString()"),
- nxt_string("18:45:00 GMT+1245 (CHAST)") },
+ { nxt_string("var d = new Date(2011, 5, 24, 18, 45);"
+ "d.toTimeString().slice(0, 17)"),
+ nxt_string("18:45:00 GMT+1245") },

{ nxt_string("var d = new Date(2011, 5, 24, 18, 45); d.toUTCString()"),
nxt_string("Fri Jun 24 2011 06:00:00 GMT") },
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Time zone name has been removed from unit tests.

Igor Sysoev 833 June 23, 2017 10:44AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready