diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-08-04 12:43:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 12:43:54 +0200 |
commit | 7b020f000aa7ea868d5d3037e68eaec621ef9972 (patch) | |
tree | cc041fa115272920472204492277b306bc5bcf6e /plugins/base/src/test/kotlin/utils/HtmlUtils.kt | |
parent | 01cc092fed1b4de81b6b39c147e162575b86dfd0 (diff) | |
download | dokka-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/HtmlUtils.kt')
-rw-r--r-- | plugins/base/src/test/kotlin/utils/HtmlUtils.kt | 11 |
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() +} |