aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-03-10 17:00:14 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-03-10 17:00:14 +0100
commit2e6eda906df5e66273deddbe7215c6dd15e4cc8c (patch)
tree57606f47e3bf7f1eb71688ce7e1d348f8c73d643 /test
parent549791160cff5e02a69b632b366efcb71e3f5865 (diff)
downloaddokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.tar.gz
dokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.tar.bz2
dokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.zip
support HTML entities
Diffstat (limited to 'test')
-rw-r--r--test/data/format/entity.html26
-rw-r--r--test/data/format/entity.kt4
-rw-r--r--test/src/format/HtmlFormatTest.kt7
3 files changed, 37 insertions, 0 deletions
diff --git a/test/data/format/entity.html b/test/data/format/entity.html
new file mode 100644
index 00000000..b9a1b89b
--- /dev/null
+++ b/test/data/format/entity.html
@@ -0,0 +1,26 @@
+<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>Copyright &copy; JetBrains 2015</p>
+<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>Copyright &copy; JetBrains 2015</p>
+</td>
+</tr>
+</tbody>
+</table>
+</BODY>
+</HTML>
diff --git a/test/data/format/entity.kt b/test/data/format/entity.kt
new file mode 100644
index 00000000..dc860d9e
--- /dev/null
+++ b/test/data/format/entity.kt
@@ -0,0 +1,4 @@
+/**
+ * Copyright &copy; JetBrains 2015
+ */
+class Bar {}
diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt
index f8afab8f..fb2df875 100644
--- a/test/src/format/HtmlFormatTest.kt
+++ b/test/src/format/HtmlFormatTest.kt
@@ -141,4 +141,11 @@ public class HtmlFormatTest {
htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" })
}
}
+
+ Test fun entity() {
+ verifyOutput("test/data/format/entity.kt", ".html") { model, output ->
+ htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar" })
+ }
+ }
}
+