diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/typeLink.html | 24 | ||||
-rw-r--r-- | test/data/format/typeLink.kt | 5 | ||||
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 6 |
3 files changed, 35 insertions, 0 deletions
diff --git a/test/data/format/typeLink.html b/test/data/format/typeLink.html new file mode 100644 index 00000000..3f83dbda --- /dev/null +++ b/test/data/format/typeLink.html @@ -0,0 +1,24 @@ +<HTML> +<HEAD> +<title>test / Bar</title> +</HEAD> +<BODY> +<a href="out.html">test</a> / <a href="out.html"></a> / <a href="out.html">Bar</a><br/> +<br/> +<h1>Bar</h1> +<code><span class="keyword">class </span><span class="identifier">Bar</span><span class="symbol"> : </span><a href="out.html"><span class="identifier">Foo</span></a></code><br/> +<br/> +<br/> +<h3>Constructors</h3> +<table> +<tbody> +<tr> +<td> +<a href="out.html"><init></a></td> +<td> +<code><span class="keyword">public</span> <span class="identifier">Bar</span><span class="symbol">(</span><span class="symbol">)</span></code></td> +</tr> +</tbody> +</table> +</BODY> +</HTML> diff --git a/test/data/format/typeLink.kt b/test/data/format/typeLink.kt new file mode 100644 index 00000000..966e020e --- /dev/null +++ b/test/data/format/typeLink.kt @@ -0,0 +1,5 @@ +class Foo() { +} + +class Bar(): Foo { +} diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt index 53c1a39d..1e469b91 100644 --- a/test/src/format/HtmlFormatTest.kt +++ b/test/src/format/HtmlFormatTest.kt @@ -75,4 +75,10 @@ public class HtmlFormatTest { htmlService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun typeLink() { + verifyOutput("test/data/format/typeLink.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members.filter { it.name == "Bar"} ) + } + } } |