From: Vsevolod Stakhov Date: Fri, 2 Jul 2021 10:35:15 +0000 (+0100) Subject: [Test] Fix broken tests as it is confirmed by browser \m/ X-Git-Tag: 3.0~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a69bb975bab282437df559fd0efb25db3c174dba;p=rspamd.git [Test] Fix broken tests as it is confirmed by browser \m/ --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 967411b2a..687518343 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -1930,13 +1930,6 @@ TEST_CASE("html text extraction") { const std::vector> cases{ - {" \n" - " \n" - " Hello, world!
test

contentmore content
\n" - "
\n" - " content inside div\n" - "
\n" - " ", "Hello, world!\ntest\ncontent\nmore content\ncontent inside div\n"}, {" \n" " \n" " a b a > b a < b a & b 'a "a"\n" @@ -2000,7 +1993,13 @@ TEST_CASE("html text extraction") " data2\n" " \n" " ", "heada headb\ndata1 data2\n"}, - + {" \n" + " \n" + " Hello, world!
test

contentmore content
\n" + "
\n" + " content inside div\n" + "
\n" + " ", "Hello, world!\ntest\ncontentmore content\ncontent inside div\n"}, }; rspamd_url_init(NULL); diff --git a/test/lua/unit/html.lua b/test/lua/unit/html.lua index 8582c4edc..81c52ec1b 100644 --- a/test/lua/unit/html.lua +++ b/test/lua/unit/html.lua @@ -56,7 +56,7 @@ context("HTML processing", function() - ]], 'Hello, world!\ntest\ncontent\nmore content\ncontent inside div\n'}, + ]], 'Hello, world!\ntest\ncontentmore content\ncontent inside div\n'}, {[[