Welcome! Log In Create A New Profile

Advanced

[njs] Fixed expect tests.

Dmitry Volyntsev
April 16, 2021 10:30AM
details: https://hg.nginx.org/njs/rev/0746b2ed76cc
branches:
changeset: 1626:0746b2ed76cc
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Fri Apr 16 13:46:46 2021 +0000
description:
Fixed expect tests.

diffstat:

test/njs_expect_test.exp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4a7c18a7825a -r 0746b2ed76cc test/njs_expect_test.exp
--- a/test/njs_expect_test.exp Fri Apr 16 13:35:20 2021 +0000
+++ b/test/njs_expect_test.exp Fri Apr 16 13:46:46 2021 +0000
@@ -70,7 +70,7 @@ njs_test {
# Global completions, yes
njs_test {
{"\t\ty"
- "\a\r\nDisplay all*possibilities? (y or n)*await"}
+ "\a\r\nDisplay all*possibilities? (y or n)*Array"}
}

# Global completions, single partial match
@@ -393,9 +393,9 @@ njs_test {
# Non-ASCII characters
njs_test {
{"'絵文字'\r\n"
- "絵文字"}
+ "'絵文字'"}
{"var v = 'абвгдеёжзийкл';v[10]\r\n"
- "й"}
+ "'й'"}
}

# Immediate events
@@ -805,7 +805,7 @@ njs_test {
{"(new Function('return this'))() === globalThis\r\n"
"true\r\n"}
{"new Function('return this;')\r\n"
- "TypeError: function constructor is disabled in \"safe\" mode\r\n"}
+ "[Function]"}
{"new Function('return thi')\r\n"
"TypeError: function constructor is disabled in \"safe\" mode\r\n"}
} "-u"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed expect tests.

Dmitry Volyntsev 320 April 16, 2021 10:30AM



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

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready