aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-04-03 13:57:33 +0200
committerKamil Doległo <kamilok1965@users.noreply.github.com>2020-04-15 14:33:24 +0200
commitfee86d79a3aa7357c68c2f8f519d187f43447e8c (patch)
tree7ba7ef24bf7733e7778f0a5344756ed39c364a3a /plugins/base/src/test
parent64e600b126ae8edcfbb3c2716febb01d221520b5 (diff)
downloaddokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.gz
dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.bz2
dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.zip
Refactor package list to be a preprocessor
Diffstat (limited to 'plugins/base/src/test')
-rw-r--r--plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt2
-rw-r--r--plugins/base/src/test/resources/expect/annotatedFunction/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/annotatedFunctionWithAnnotationParameters/out/html/root/package-list8
-rw-r--r--plugins/base/src/test/resources/expect/function/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/functionWithAnnotatedParam/out/html/root/package-list8
-rw-r--r--plugins/base/src/test/resources/expect/functionWithDefaultParameter/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/functionWithNoinlineParam/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/functionWithNotDocumentedAnnotation/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/functionWithParams/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/package-list6
-rw-r--r--plugins/base/src/test/resources/expect/genericFunction/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/genericFunctionWithConstraints/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/inlineFunction/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/inlineSuspendFunction/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/signatureTest/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/sinceKotlin/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/suspendFunction/out/html/root/package-list5
-rw-r--r--plugins/base/src/test/resources/expect/suspendInlineFunction/out/html/root/package-list5
18 files changed, 93 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt b/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
index 5f8d1dc4..b9809ac1 100644
--- a/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
+++ b/plugins/base/src/test/kotlin/renderers/RenderingOnlyTestBase.kt
@@ -2,7 +2,7 @@ package renderers
import org.jetbrains.dokka.DokkaConfigurationImpl
import org.jetbrains.dokka.base.DokkaBase
-import org.jetbrains.dokka.base.renderers.html.RootCreator
+import org.jetbrains.dokka.base.renderers.RootCreator
import org.jetbrains.dokka.base.resolvers.external.DokkaExternalLocationProviderFactory
import org.jetbrains.dokka.base.resolvers.external.JavadocExternalLocationProviderFactory
import org.jetbrains.dokka.base.resolvers.local.DefaultLocationProviderFactory
diff --git a/plugins/base/src/test/resources/expect/annotatedFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/annotatedFunction/out/html/root/package-list
new file mode 100644
index 00000000..caf6273a
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/annotatedFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/annotatedFunctionWithAnnotationParameters/out/html/root/package-list b/plugins/base/src/test/resources/expect/annotatedFunctionWithAnnotationParameters/out/html/root/package-list
new file mode 100644
index 00000000..d2e42c86
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/annotatedFunctionWithAnnotationParameters/out/html/root/package-list
@@ -0,0 +1,8 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#//root/<jvm root>/f.html
+$dokka.location:/Fancy/equals/#kotlin.Any?//root/<jvm root>/-fancy/equals.html
+$dokka.location:/Fancy/hashCode/#//root/<jvm root>/-fancy/hash-code.html
+$dokka.location:/Fancy/toString/#//root/<jvm root>/-fancy/to-string.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/function/out/html/root/package-list b/plugins/base/src/test/resources/expect/function/out/html/root/package-list
new file mode 100644
index 00000000..3a7c6807
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/function/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://fn/#//root/<jvm root>/fn.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithAnnotatedParam/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithAnnotatedParam/out/html/root/package-list
new file mode 100644
index 00000000..0b48e7e0
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithAnnotatedParam/out/html/root/package-list
@@ -0,0 +1,8 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://function/#kotlin.Function0[kotlin.Unit]//root/<jvm root>/function.html
+$dokka.location:/Fancy/equals/#kotlin.Any?//root/<jvm root>/-fancy/equals.html
+$dokka.location:/Fancy/hashCode/#//root/<jvm root>/-fancy/hash-code.html
+$dokka.location:/Fancy/toString/#//root/<jvm root>/-fancy/to-string.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithDefaultParameter/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithDefaultParameter/out/html/root/package-list
new file mode 100644
index 00000000..c8e4e8e1
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithDefaultParameter/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#kotlin.String//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithNoinlineParam/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithNoinlineParam/out/html/root/package-list
new file mode 100644
index 00000000..7de7dd3b
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithNoinlineParam/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://function/#kotlin.Function0[kotlin.Unit]//root/<jvm root>/function.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithNotDocumentedAnnotation/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithNotDocumentedAnnotation/out/html/root/package-list
new file mode 100644
index 00000000..caf6273a
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithNotDocumentedAnnotation/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithParams/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithParams/out/html/root/package-list
new file mode 100644
index 00000000..8b5d43ee
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithParams/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://function/#kotlin.Int//root/<jvm root>/function.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/package-list b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/package-list
new file mode 100644
index 00000000..13dc2923
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/functionWithReceiver/out/html/root/package-list
@@ -0,0 +1,6 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://fn/kotlin.String#//root/<jvm root>/fn.html
+$dokka.location://fn/kotlin.String#kotlin.Int//root/<jvm root>/fn.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/genericFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/genericFunction/out/html/root/package-list
new file mode 100644
index 00000000..30905d0f
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/genericFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://generic/#//root/<jvm root>/generic.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/genericFunctionWithConstraints/out/html/root/package-list b/plugins/base/src/test/resources/expect/genericFunctionWithConstraints/out/html/root/package-list
new file mode 100644
index 00000000..30905d0f
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/genericFunctionWithConstraints/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://generic/#//root/<jvm root>/generic.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/inlineFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/inlineFunction/out/html/root/package-list
new file mode 100644
index 00000000..60993388
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/inlineFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#kotlin.Function0[kotlin.String]//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/inlineSuspendFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/inlineSuspendFunction/out/html/root/package-list
new file mode 100644
index 00000000..60993388
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/inlineSuspendFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#kotlin.Function0[kotlin.String]//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/signatureTest/out/html/root/package-list b/plugins/base/src/test/resources/expect/signatureTest/out/html/root/package-list
new file mode 100644
index 00000000..3c53d355
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/signatureTest/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+
+signatureTest
+
diff --git a/plugins/base/src/test/resources/expect/sinceKotlin/out/html/root/package-list b/plugins/base/src/test/resources/expect/sinceKotlin/out/html/root/package-list
new file mode 100644
index 00000000..8810ec13
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/sinceKotlin/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://availableSince1.1/#//root/<jvm root>/available-since1.1.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/suspendFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/suspendFunction/out/html/root/package-list
new file mode 100644
index 00000000..caf6273a
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/suspendFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#//root/<jvm root>/f.html
+<jvm root>
+
diff --git a/plugins/base/src/test/resources/expect/suspendInlineFunction/out/html/root/package-list b/plugins/base/src/test/resources/expect/suspendInlineFunction/out/html/root/package-list
new file mode 100644
index 00000000..60993388
--- /dev/null
+++ b/plugins/base/src/test/resources/expect/suspendInlineFunction/out/html/root/package-list
@@ -0,0 +1,5 @@
+$dokka.format:html
+$dokka.linkExtension:html
+$dokka.location://f/#kotlin.Function0[kotlin.String]//root/<jvm root>/f.html
+<jvm root>
+