From: Pragadeesh C Date: Fri, 14 Apr 2017 13:32:37 +0000 (-0700) Subject: html content extraction test improv X-Git-Tag: 1.5.6~9^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a69b112bf749cdec95962ea8835bd62e4cfd5db2;p=rspamd.git html content extraction test improv --- diff --git a/test/lua/unit/html.lua b/test/lua/unit/html.lua index f1408c25a..489947ffb 100644 --- a/test/lua/unit/html.lua +++ b/test/lua/unit/html.lua @@ -57,6 +57,64 @@ context("HTML processing", function() ]], 'Hello, world!'}, + {[[ + + + + title + + + + + + Hello, world!
test

contentmore content
+
+ content inside div +
+ + + ]], 'Hello, world!\r\ntest\r\ncontent\r\nmore content\r\ncontent inside div\r\n'}, + {[[ + + + + title + + + + + + + content +
+ + + + + + + + + +
headaheadb
data1data2
+ + + + ]], 'content heada headb\r\ndata1 data2\r\n'}, + {[[ + + + + title + + + + + + a b a > b a < b a & b 'a "a" + + + ]], 'a b a > b a < b a & b \'a "a"'}, } for _,c in ipairs(cases) do