]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Add test case.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Jul 2015 13:34:09 +0000 (14:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Jul 2015 13:34:09 +0000 (14:34 +0100)
test/lua/unit/html.lua

index f9788c34919b2935accb23fb2dac7e7cec773dec..22a03f6d68bffe413ce55b94e0d69871e7b011d5 100644 (file)
@@ -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