Browse Source

Add test case.

tags/1.0.0
Vsevolod Stakhov 9 years ago
parent
commit
d4193cd267
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      test/lua/unit/html.lua

+ 20
- 0
test/lua/unit/html.lua View 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

Loading…
Cancel
Save