diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-07-28 08:49:52 +0300 |
---|---|---|
committer | vmishenev <vad-mishenev@yandex.ru> | 2021-07-30 01:32:42 +0300 |
commit | 85cec2dd7ae435d84bad0721c6fd79e9c644c275 (patch) | |
tree | 1228d08e124b215fdaa00f08242f5c4ba7a83912 /plugins/javadoc/src/test/kotlin | |
parent | f068030082cd38ec93988c911f4b5511ed64fca3 (diff) | |
download | dokka-85cec2dd7ae435d84bad0721c6fd79e9c644c275.tar.gz dokka-85cec2dd7ae435d84bad0721c6fd79e9c644c275.tar.bz2 dokka-85cec2dd7ae435d84bad0721c6fd79e9c644c275.zip |
Improve annotations rendering (#2045)
omit parentheses if there are no parameters
add quotes for string literals into annotations
Diffstat (limited to 'plugins/javadoc/src/test/kotlin')
-rw-r--r-- | plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt index 0b1eab7f..19ef6ae7 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/JavadocClasslikeTemplateMapTest.kt @@ -149,13 +149,13 @@ internal class JavadocClasslikeTemplateMapTest : AbstractJavadocTemplateMapTest( val map = allPagesOfType<JavadocClasslikePageNode>().first { it.name == "TestClass" }.templateMap assertEquals("TestClass", map["name"]) val signature = assertIsInstance<Map<String, Any?>>(map["signature"]) - assertEquals("@<a href=Author.html>Author</a>(name = Benjamin Franklin)", signature["annotations"]) + assertEquals("@<a href=Author.html>Author</a>(name = \"Benjamin Franklin\")", signature["annotations"]) val methods = assertIsInstance<Map<Any, Any?>>(map["methods"]) val ownMethods = assertIsInstance<List<*>>(methods["own"]) val method = assertIsInstance<Map<String, Any?>>(ownMethods.single()) val methodSignature = assertIsInstance<Map<String, Any?>>(method["signature"]) - assertEquals("@<a href=Author.html>Author</a>(name = Franklin D. Roosevelt)", methodSignature["annotations"]) + assertEquals("@<a href=Author.html>Author</a>(name = \"Franklin D. Roosevelt\")", methodSignature["annotations"]) } } |