aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/utils
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-08-04 12:43:54 +0200
committerGitHub <noreply@github.com>2022-08-04 12:43:54 +0200
commit7b020f000aa7ea868d5d3037e68eaec621ef9972 (patch)
treecc041fa115272920472204492277b306bc5bcf6e /plugins/base/src/test/kotlin/utils
parent01cc092fed1b4de81b6b39c147e162575b86dfd0 (diff)
downloaddokka-7b020f000aa7ea868d5d3037e68eaec621ef9972.tar.gz
dokka-7b020f000aa7ea868d5d3037e68eaec621ef9972.tar.bz2
dokka-7b020f000aa7ea868d5d3037e68eaec621ef9972.zip
Render nested classlikes in navigation (#2597)
Diffstat (limited to 'plugins/base/src/test/kotlin/utils')
-rw-r--r--plugins/base/src/test/kotlin/utils/HtmlUtils.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/utils/HtmlUtils.kt b/plugins/base/src/test/kotlin/utils/HtmlUtils.kt
new file mode 100644
index 00000000..bfba882a
--- /dev/null
+++ b/plugins/base/src/test/kotlin/utils/HtmlUtils.kt
@@ -0,0 +1,11 @@
+package utils
+
+import org.jsoup.Jsoup
+import org.jsoup.nodes.Element
+import org.jsoup.select.Elements
+
+internal fun TestOutputWriter.navigationHtml(): Element = contents.getValue("navigation.html").let { Jsoup.parse(it) }
+
+internal fun Elements.selectNavigationGrid(): Element {
+ return this.select("div.overview").select("span.nav-link-grid").single()
+}