[njs] Removed duplicate expect tests introduced in cb3e068a511c.

Dmitry Volyntsev xeioex at nginx.com
Thu Feb 29 17:00:35 UTC 2024


details:   https://hg.nginx.org/njs/rev/49417e2749e0
branches:  
changeset: 2293:49417e2749e0
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Tue Feb 27 23:25:11 2024 -0800
description:
Removed duplicate expect tests introduced in cb3e068a511c.

diffstat:

 test/shell_test_njs.exp |  32 --------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)

diffs (42 lines):

diff -r 46699330f4f2 -r 49417e2749e0 test/shell_test_njs.exp
--- a/test/shell_test_njs.exp	Tue Feb 27 23:25:05 2024 -0800
+++ b/test/shell_test_njs.exp	Tue Feb 27 23:25:11 2024 -0800
@@ -212,38 +212,6 @@ njs_test {
      "TypeError: cannot get property \"a\" of undefined"}
 }
 
-# console.time* functions
-njs_test {
-    {"console.time()\r\n"
-     "console.time()\r\nundefined\r\n>> "}
-    {"console.timeEnd()\r\n"
-     "console.timeEnd()\r\ndefault: *.*ms\r\nundefined\r\n>> "}
-    {"console.time(undefined)\r\n"
-     "console.time(undefined)\r\nundefined\r\n>> "}
-    {"console.timeEnd(undefined)\r\n"
-     "console.timeEnd(undefined)\r\ndefault: *.*ms\r\nundefined\r\n>> "}
-    {"console.time('abc')\r\n"
-     "console.time('abc')\r\nundefined\r\n>> "}
-    {"console.time('abc')\r\n"
-     "console.time('abc')\r\nTimer \"abc\" already exists.\r\nundefined\r\n>> "}
-    {"console.timeEnd('abc')\r\n"
-     "console.timeEnd('abc')\r\nabc: *.*ms\r\nundefined\r\n>> "}
-    {"console.time(true)\r\n"
-     "console.time(true)\r\nundefined\r\n>> "}
-    {"console.timeEnd(true)\r\n"
-     "console.timeEnd(true)\r\ntrue: *.*ms\r\nundefined\r\n>> "}
-    {"console.time(42)\r\n"
-     "console.time(42)\r\nundefined\r\n>> "}
-    {"console.timeEnd(42)\r\n"
-     "console.timeEnd(42)\r\n42: *.*ms\r\nundefined\r\n>> "}
-    {"console.timeEnd()\r\n"
-     "console.timeEnd()\r\nTimer \"default\" doesn’t exist."}
-    {"console.timeEnd('abc')\r\n"
-     "console.timeEnd('abc')\r\nTimer \"abc\" doesn’t exist."}
-    {"console.time('abc')\r\n"
-     "console.time('abc')\r\nundefined\r\n>> "}
-}
-
 njs_test {
     {"console.ll()\r\n"
      "console.ll()\r\nThrown:\r\nTypeError: (intermediate value)\\\[\"ll\"] is not a function"}


More information about the nginx-devel mailing list