aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-28 12:27:05 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-28 12:27:05 +0200
commite455a0dd6af736e46cf83a893f2290aa9440ca71 (patch)
treeb58850bb43025e82519681a694416f69a6acfd0a /test
parentc4f3df0ae4ee3b1bb57ea6d590b6b4baaaf5ff69 (diff)
downloaddokka-e455a0dd6af736e46cf83a893f2290aa9440ca71.tar.gz
update Dokka to M14
Diffstat (limited to 'test')
-rw-r--r--test/data/format/deprecated.kt6
-rw-r--r--test/data/functions/annotatedFunctionWithAnnotationParameters.kt8
-rw-r--r--test/src/model/FunctionTest.kt6
3 files changed, 13 insertions, 7 deletions
diff --git a/test/data/format/deprecated.kt b/test/data/format/deprecated.kt
index 9ee2c1d68..4fc568c23 100644
--- a/test/data/format/deprecated.kt
+++ b/test/data/format/deprecated.kt
@@ -1,5 +1,5 @@
-deprecated("This class sucks") class C() { }
+@Deprecated("This class sucks") class C() { }
-deprecated("This function sucks") fun f() { }
+@Deprecated("This function sucks") fun f() { }
-deprecated("This property sucks") val p: Int get() = 0
+@Deprecated("This property sucks") val p: Int get() = 0
diff --git a/test/data/functions/annotatedFunctionWithAnnotationParameters.kt b/test/data/functions/annotatedFunctionWithAnnotationParameters.kt
index ee5b524ae..e3bc45c9c 100644
--- a/test/data/functions/annotatedFunctionWithAnnotationParameters.kt
+++ b/test/data/functions/annotatedFunctionWithAnnotationParameters.kt
@@ -1 +1,7 @@
-inlineOptions(InlineOption.LOCAL_CONTINUE_AND_BREAK) fun f() {}
+@Target(AnnotationTarget.VALUE_PARAMETER)
+@Retention(AnnotationRetention.SOURCE)
+@MustBeDocumented
+public annotation class Fancy(val size: Int)
+
+
+Fancy(1) fun f() {}
diff --git a/test/src/model/FunctionTest.kt b/test/src/model/FunctionTest.kt
index fc3ebae51..9a5a67b45 100644
--- a/test/src/model/FunctionTest.kt
+++ b/test/src/model/FunctionTest.kt
@@ -191,10 +191,10 @@ Documentation""", content.description.toTestString())
@Test fun annotatedFunctionWithAnnotationParameters() {
verifyModel("test/data/functions/annotatedFunctionWithAnnotationParameters.kt") { model ->
- with(model.members.single().members.single()) {
+ with(model.members.single().members.single { it.name == "f"}) {
assertEquals(1, annotations.count())
with(annotations[0]) {
- assertEquals("inlineOptions", name)
+ assertEquals("Fancy", name)
assertEquals(Content.Empty, content)
assertEquals(DocumentationNode.Kind.Annotation, kind)
assertEquals(1, details.count())
@@ -203,7 +203,7 @@ Documentation""", content.description.toTestString())
assertEquals(1, details.count())
with(details[0]) {
assertEquals(DocumentationNode.Kind.Value, kind)
- assertEquals("[InlineOption.LOCAL_CONTINUE_AND_BREAK]", name)
+ assertEquals("1", name)
}
}
}