aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:35:56 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-03 19:35:56 +0100
commit6659337410225b813ea902bfa4b2e5ba3c2c1aaa (patch)
tree3c3679f01bca4497f800a371e42681246843d5d3 /test
parente961960934e2f43cdfc6ad63126c005866a60003 (diff)
downloaddokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.gz
dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.bz2
dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.zip
support ordered lists
Diffstat (limited to 'test')
-rw-r--r--test/data/format/javadocHtml.md1
-rw-r--r--test/data/format/javadocOrderedList.java10
-rw-r--r--test/data/format/javadocOrderedList.md14
-rw-r--r--test/data/format/orderedList.html31
-rw-r--r--test/data/format/orderedList.kt8
-rw-r--r--test/src/format/HtmlFormatTest.kt6
-rw-r--r--test/src/format/MarkdownFormatTest.kt6
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>&nbsp;/&nbsp;<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-">&lt;init&gt;</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" })
+ }
+ }
}