Add test for CompletePage flag
The implementation for CompletePage was committed with d7f1878
by
accident, following up with the test.
This commit is contained in:
parent
607478a8ce
commit
106f1ec1bb
|
@ -1558,3 +1558,24 @@ func TestOmitContents(t *testing.T) {
|
|||
// 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})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue