diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-03 19:35:56 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-03 19:35:56 +0100 |
commit | 6659337410225b813ea902bfa4b2e5ba3c2c1aaa (patch) | |
tree | 3c3679f01bca4497f800a371e42681246843d5d3 /test | |
parent | e961960934e2f43cdfc6ad63126c005866a60003 (diff) | |
download | dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.gz dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.bz2 dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.zip |
support ordered lists
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/javadocHtml.md | 1 | ||||
-rw-r--r-- | test/data/format/javadocOrderedList.java | 10 | ||||
-rw-r--r-- | test/data/format/javadocOrderedList.md | 14 | ||||
-rw-r--r-- | test/data/format/orderedList.html | 31 | ||||
-rw-r--r-- | test/data/format/orderedList.kt | 8 | ||||
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 6 | ||||
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 6 |
7 files changed, 76 insertions, 0 deletions
diff --git a/test/data/format/javadocHtml.md b/test/data/format/javadocHtml.md index 303b102c..64b7a5a4 100644 --- a/test/data/format/javadocHtml.md +++ b/test/data/format/javadocHtml.md @@ -14,6 +14,7 @@ Block code ``` * List Item + diff --git a/test/data/format/javadocOrderedList.java b/test/data/format/javadocOrderedList.java new file mode 100644 index 00000000..1c7f8a3e --- /dev/null +++ b/test/data/format/javadocOrderedList.java @@ -0,0 +1,10 @@ +package test; + +/** + * <ol> + * <li>Rinse</li> + * <li>Repeat</li> + * </ol> + */ +public class Bar { +} diff --git a/test/data/format/javadocOrderedList.md b/test/data/format/javadocOrderedList.md new file mode 100644 index 00000000..ba5935e2 --- /dev/null +++ b/test/data/format/javadocOrderedList.md @@ -0,0 +1,14 @@ +[test](test/index) / [test](test/test/index) / [Bar](test/test/-bar) + + +# Bar + +`public open class Bar` + + 1. Rinse + 1. Repeat + + + + + diff --git a/test/data/format/orderedList.html b/test/data/format/orderedList.html new file mode 100644 index 00000000..223684ff --- /dev/null +++ b/test/data/format/orderedList.html @@ -0,0 +1,31 @@ +<HTML> +<HEAD> +<title>test / Bar</title> +</HEAD> +<BODY> +<a href="test/index">test</a> / <a href="test/-bar/index">Bar</a><br/> +<br/> +<h1>Bar</h1> +<code><span class="keyword">class </span><span class="identifier">Bar</span></code><br/> +<p>Usage instructions:</p> +<h3>Description</h3> +<ol><li><p>Rinse</p> +</li><li><p>Repeat</p> +</li></ol><br/> +<br/> +<br/> +<br/> +<h3>Constructors</h3> +<table> +<tbody> +<tr> +<td> +<a href="test/-bar/-init-"><init></a></td> +<td> +<code><span class="identifier">Bar</span><span class="symbol">(</span><span class="symbol">)</span></code><p>Usage instructions:</p> +</td> +</tr> +</tbody> +</table> +</BODY> +</HTML> diff --git a/test/data/format/orderedList.kt b/test/data/format/orderedList.kt new file mode 100644 index 00000000..03681c7a --- /dev/null +++ b/test/data/format/orderedList.kt @@ -0,0 +1,8 @@ +/** + * Usage instructions: + * + * 1. Rinse + * 1. Repeat + */ +class Bar { +} diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt index c81b2d85..66eefe93 100644 --- a/test/src/format/HtmlFormatTest.kt +++ b/test/src/format/HtmlFormatTest.kt @@ -123,4 +123,10 @@ public class HtmlFormatTest { htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" }) } } + + Test fun orderedList() { + verifyOutput("test/data/format/orderedList.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" }) + } + } } diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 31ffc3cf..33718e87 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -154,4 +154,10 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members.single { it.name == "C" }.members.filter { it.name == "plus" }) } } + + Test fun javadocOrderedLIst() { + verifyOutput("test/data/format/javadocOrderedList.java", ".md") { model, output -> + markdownService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" }) + } + } } |