aboutsummaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2014-12-30 13:41:02 +0100
committerDmitry Jemerov <yole@jetbrains.com>2014-12-30 13:41:02 +0100
commitfeca80b65581e688b1e9a3e807dfce2e17fd4a13 (patch)
treef090f9a361d90a5b9b8e554938933b8be7a6530c /test/data
parent8ef68182c02d8ec8fc33d0de0b7fcdef183e7ee7 (diff)
downloaddokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.tar.gz
dokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.tar.bz2
dokka-feca80b65581e688b1e9a3e807dfce2e17fd4a13.zip
add test for html escaping; fix special characters eaten from output
Diffstat (limited to 'test/data')
-rw-r--r--test/data/format/htmlEscaping.html12
-rw-r--r--test/data/format/htmlEscaping.kt4
2 files changed, 16 insertions, 0 deletions
diff --git a/test/data/format/htmlEscaping.html b/test/data/format/htmlEscaping.html
new file mode 100644
index 00000000..4f1409c4
--- /dev/null
+++ b/test/data/format/htmlEscaping.html
@@ -0,0 +1,12 @@
+<HTML>
+<HEAD>
+</HEAD>
+<BODY>
+<a href="out.html">test</a>&nbsp;/&nbsp;<a href="out.html"></a>&nbsp;/&nbsp;<a href="out.html">x</a><br/>
+<br/>
+<h1>x</h1>
+<pre><code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt; </span><span class="identifier">x</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">T?</span></code></pre><p>Special characters: &lt; is "less than", &gt; is "greater than", &amp; is "ampersand"</p>
+<br/>
+<br/>
+</BODY>
+</HTML>
diff --git a/test/data/format/htmlEscaping.kt b/test/data/format/htmlEscaping.kt
new file mode 100644
index 00000000..8778d8a5
--- /dev/null
+++ b/test/data/format/htmlEscaping.kt
@@ -0,0 +1,4 @@
+/**
+ * Special characters: < is "less than", > is "greater than", & is "ampersand"
+ */
+fun x<T>(): T? = null