From a69b112bf749cdec95962ea8835bd62e4cfd5db2 Mon Sep 17 00:00:00 2001 From: Pragadeesh C Date: Fri, 14 Apr 2017 06:32:37 -0700 Subject: [PATCH] html content extraction test improv --- test/lua/unit/html.lua | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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 -- 2.39.5