summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index ff9ae35fc..656364021 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -110,7 +110,7 @@ title: "Shortcodes Galore!"
p, err := pageparser.ParseMain(strings.NewReader(test.input), pageparser.Config{})
c.Assert(err, qt.IsNil)
- handler := newShortcodeHandler(nil, s)
+ handler := newShortcodeHandler("", s)
iter := p.Iterator()
short, err := handler.extractShortcode(0, 0, p.Input(), iter)
@@ -186,7 +186,7 @@ CSV: {{< myShort >}}
b.Assert(len(h.Sites), qt.Equals, 1)
s := h.Sites[0]
- home := s.getPage(kinds.KindHome)
+ home := s.getPageOldVersion(kinds.KindHome)
b.Assert(home, qt.Not(qt.IsNil))
b.Assert(len(home.OutputFormats()), qt.Equals, 3)
@@ -829,7 +829,6 @@ title: "Hugo Rocks!"
<h2 id="doc">Doc</h2>
`,
)
-
}
// https://github.com/gohugoio/hugo/issues/6857
@@ -927,7 +926,6 @@ title: "p1"
b.AssertFileContent("public/p1/index.html", `
<x
`)
-
}
func TestShortcodePreserveIndentation(t *testing.T) {
@@ -967,7 +965,6 @@ title: "p1"
).Build()
b.AssertFileContent("public/p1/index.html", "<ol>\n<li>\n<p>List 1</p>\n<ol>\n<li>Item Mark1 1</li>\n<li>Item Mark1 2</li>\n<li>Item Mark2 1</li>\n<li>Item Mark2 2\n<ol>\n<li>Item Mark2 2-1</li>\n</ol>\n</li>\n<li>Item Mark2 3</li>\n</ol>\n</li>\n</ol>")
-
}
func TestShortcodeCodeblockIndent(t *testing.T) {
@@ -998,7 +995,6 @@ echo "foo";
).Build()
b.AssertFileContent("public/p1/index.html", "<pre><code>echo &quot;foo&quot;;\n</code></pre>")
-
}
func TestShortcodeHighlightDeindent(t *testing.T) {
@@ -1041,7 +1037,6 @@ title: "p1"
</code></pre>
`)
-
}
// Issue 10236.
@@ -1073,7 +1068,6 @@ Title: {{ .Get "title" | safeHTML }}
).Build()
b.AssertFileContent("public/p1/index.html", `Title: Steve "Francia".`)
-
}
// Issue 10391.
@@ -1166,7 +1160,6 @@ C'est un test
).Build()
b.AssertFileContent("public/fr/p2/index.html", `plus-dinformations`)
-
}
// Issue 10671.
@@ -1281,5 +1274,4 @@ Hello.
).Build()
b.AssertFileContent("public/p1/index.html", "<span style=\"color:#a6e22e\">Hello.</span>")
-
}