-
Notifications
You must be signed in to change notification settings - Fork 391
/
ListStylesTest.kt
41 lines (35 loc) · 1.12 KB
/
ListStylesTest.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package renderers.html
import org.jetbrains.dokka.base.renderers.html.HtmlRenderer
import org.jetbrains.dokka.pages.ListStyle
import org.junit.jupiter.api.Test
import renderers.testPage
import utils.Dd
import utils.Dl
import utils.Dt
import utils.match
class ListStylesTest : HtmlRenderingOnlyTestBase() {
@Test
fun `description list render`() {
val page = testPage {
descriptionList {
item(styles = setOf(ListStyle.DescriptionTerm)) {
text("Description term #1")
}
item(styles = setOf(ListStyle.DescriptionTerm)) {
text("Description term #2")
}
item(styles = setOf(ListStyle.DescriptionDetails)) {
text("Description details describing terms #1 and #2")
}
}
}
HtmlRenderer(context).render(page)
renderedContent.match(
Dl(
Dt("Description term #1"),
Dt("Description term #2"),
Dd("Description details describing terms #1 and #2")
)
)
}
}