diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-05-20 17:58:31 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-20 18:13:23 +0200 |
commit | 091294c5a920521df1b4bf61c2492b78f3559321 (patch) | |
tree | f00833367aca8f8bfdd6ec77495a40576e30d78e /plugins/base/src/test/kotlin/linkableContent | |
parent | 885bf34ac6d9b9a5974cab35d9dd5a224b0ccc4c (diff) | |
download | dokka-091294c5a920521df1b4bf61c2492b78f3559321.tar.gz dokka-091294c5a920521df1b4bf61c2492b78f3559321.tar.bz2 dokka-091294c5a920521df1b4bf61c2492b78f3559321.zip |
Tabs for sections - update tests
Diffstat (limited to 'plugins/base/src/test/kotlin/linkableContent')
-rw-r--r-- | plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt index e7883bc1..b18c3a5a 100644 --- a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt +++ b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt @@ -112,8 +112,8 @@ class LinkableContentTest : AbstractCoreTest() { packageChildren.forEach { val name = it.name.substringBefore("Class") val crl = it.safeAs<ClasslikePageNode>()?.content?.safeAs<ContentGroup>()?.children?.last() - ?.safeAs<ContentGroup>()?.children?.last()?.safeAs<ContentTable>()?.children?.singleOrNull() - ?.safeAs<ContentGroup>()?.children?.singleOrNull()?.safeAs<ContentResolvedLink>() + ?.safeAs<ContentGroup>()?.children?.last()?.safeAs<ContentGroup>()?.children?.lastOrNull() + ?.safeAs<ContentTable>()?.children?.singleOrNull()?.safeAs<ContentGroup>()?.children?.singleOrNull().safeAs<ContentResolvedLink>() Assertions.assertEquals( "https://github.com/user/repo/tree/master/src/${name.toLowerCase()}Main/kotlin/${name}Class.kt#L3", crl?.address @@ -166,8 +166,11 @@ class LinkableContentTest : AbstractCoreTest() { .cast<ContentDivergentGroup>().children.single() .cast<ContentDivergentInstance>().after .cast<ContentGroup>().children.last() + .cast<ContentGroup>().children.last() .cast<PlatformHintedContent>().children.single() - .cast<ContentGroup>().children.single().cast<ContentGroup>().children.last() + .cast<ContentGroup>().children.single() + .cast<ContentTable>().children.single() + .cast<ContentGroup>().children.single() .cast<ContentGroup>().children.single() .cast<ContentCode>().children.single().cast<ContentText>().text Assertions.assertEquals( |