diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-16 14:34:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-16 14:34:09 +0100 |
commit | d4193cd267e184d6439b73bf66055b1b145c1720 (patch) | |
tree | d309007f7c4c7f873bbf4c1c3db23735eed33006 /test | |
parent | ce44c3c10be7eea45f78e7f375fd4fde7887ecfa (diff) | |
download | rspamd-d4193cd267e184d6439b73bf66055b1b145c1720.tar.gz rspamd-d4193cd267e184d6439b73bf66055b1b145c1720.zip |
Add test case.
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/html.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lua/unit/html.lua b/test/lua/unit/html.lua index f9788c349..22a03f6d6 100644 --- a/test/lua/unit/html.lua +++ b/test/lua/unit/html.lua @@ -40,6 +40,26 @@ context("HTML processing", function() </p> </body> </html>]], 'Hello, world!'}, + {[[ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>title</title> + <link rel="stylesheet" href="style.css"> + <script src="script.js"></script> + <style><!-- +- -a -a -a -- --- - + --></head> + <body> + <!-- page content --> + Hello, world! <b>test</b> + <p>data<> + </P> + <b>stuff</p>? + </body> +</html> + ]], 'Hello, world! test data stuff?'}, } for _,c in ipairs(cases) do |