aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-16 13:59:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-16 13:59:24 +0100
commita0f8924ef0cf0351bacbdc06a2c26ff60ed85b66 (patch)
treeb43526b4b539fa9f24959947a27fadb1c74f1648 /test/lua
parente5345b46dda5a1fc93ed34fce7bde76a3768320f (diff)
downloadrspamd-a0f8924ef0cf0351bacbdc06a2c26ff60ed85b66.tar.gz
rspamd-a0f8924ef0cf0351bacbdc06a2c26ff60ed85b66.zip
More fixes to html parsing.
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/unit/html.lua25
1 files changed, 23 insertions, 2 deletions
diff --git a/test/lua/unit/html.lua b/test/lua/unit/html.lua
index 5c58e209a..f9788c349 100644
--- a/test/lua/unit/html.lua
+++ b/test/lua/unit/html.lua
@@ -15,10 +15,31 @@ context("HTML processing", function()
</head>
<body>
<!-- page content -->
- Hello, world!
+ Hello, world! <b>test</b>
+ <p>data<>
+ </P>
+ <b>stuff</p>?
</body>
</html>
- ]], 'Hello, world!'},
+ ]], 'Hello, world! test data stuff?'},
+ {[[
+<?xml version="1.0" encoding="iso-8859-1"?>
+ <!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>
+ Wikibooks
+ </title>
+ </head>
+ <body>
+ <p>
+ Hello, world!
+
+ </p>
+ </body>
+ </html>]], 'Hello, world!'},
}
for _,c in ipairs(cases) do