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

Igor Sysoev igor at sysoev.ru
Fri Jun 23 14:42:25 UTC 2017


details:   http://hg.nginx.org/njs/rev/d882561d50e8
branches:  
changeset: 377:d882561d50e8
user:      Igor Sysoev <igor at 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") },


More information about the nginx-devel mailing list