diff options
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/unit/html.lua | 25 |
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 |