commit 58ef5d9: [Test] Add visibility test case for html parsing

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jun 23 13:07:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-23 14:02:04 +0100
URL: https://github.com/rspamd/rspamd/commit/58ef5d973a4060bfab0f067a80d9c26eb3d07493 (HEAD -> master)

[Test] Add visibility test case for html parsing

---
 src/libserver/html/html.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 2e519e81a..e427c73bf 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1836,6 +1836,8 @@ TEST_CASE("html text extraction")
 			 "      <br>\n"
 			 "      test</div>"
 			 "</body>", "\n\n\ntest\n"},
+			{"<div>fi<span style=\"FONT-SIZE: 0px\">le </span>"
+			 "sh<span style=\"FONT-SIZE: 0px\">aring </span></div>", "fish\n"},
 	};
 
 	rspamd_url_init(NULL);


More information about the Commits mailing list