Add test for CompletePage flag The implementation for CompletePage was committed with d7f1878 by accident, following up with the test.
Vytautas Ĺ altenis vytas@rtfb.lt
Mon, 04 Apr 2016 14:17:16 +0300
1 files changed,
21 insertions(+),
0 deletions(-)
jump to
M
block_test.go
→
block_test.go
@@ -1558,3 +1558,24 @@ doTestsBlock(t, tests, TOC|OmitContents)
// Now run again: make sure OmitContents implies TOC doTestsBlock(t, tests, OmitContents) } + +func TestCompletePage(t *testing.T) { + var tests = []string{ + "*foo*", + `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title></title> + <meta name="GENERATOR" content="Blackfriday Markdown Processor v1.4" /> + <meta charset="utf-8" /> +</head> +<body> + +<p><em>foo</em></p> + +</body> +</html> +`, + } + doTestsParam(t, tests, TestParams{HTMLFlags: UseXHTML | CompletePage}) +}