aboutsummaryrefslogtreecommitdiff
path: root/test/data/format
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-24 16:24:00 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-24 16:24:00 +0100
commita60d8ba79fd823260582b558f9f61229b12f4f6e (patch)
treeb5e3dbeb7ed7271dfdfd35a01cde61db676c5dc9 /test/data/format
parentb1296e64749b9d7250fe0284f0322ea7713c879a (diff)
downloaddokka-a60d8ba79fd823260582b558f9f61229b12f4f6e.tar.gz
dokka-a60d8ba79fd823260582b558f9f61229b12f4f6e.tar.bz2
dokka-a60d8ba79fd823260582b558f9f61229b12f4f6e.zip
understand @deprecated tag in javadoc
Diffstat (limited to 'test/data/format')
-rw-r--r--test/data/format/javaDeprecated.html14
-rw-r--r--test/data/format/javaDeprecated.java7
-rw-r--r--test/data/format/javaLinkTag.html2
3 files changed, 22 insertions, 1 deletions
diff --git a/test/data/format/javaDeprecated.html b/test/data/format/javaDeprecated.html
new file mode 100644
index 00000000..aaeed534
--- /dev/null
+++ b/test/data/format/javaDeprecated.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<title>test / test.Foo.foo</title>
+</HEAD>
+<BODY>
+<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/test/index">test</a>&nbsp;/&nbsp;<a href="test/test/-foo/index">Foo</a>&nbsp;/&nbsp;<a href="test/test/-foo/foo">foo</a><br/>
+<br/>
+<h1>foo</h1>
+<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
+<strong>Deprecated: </strong>use<a href="test/test/-foo/bar">#bar</a> instead <p></p>
+<br/>
+<br/>
+</BODY>
+</HTML>
diff --git a/test/data/format/javaDeprecated.java b/test/data/format/javaDeprecated.java
new file mode 100644
index 00000000..4216f205
--- /dev/null
+++ b/test/data/format/javaDeprecated.java
@@ -0,0 +1,7 @@
+package test;
+
+class Foo {
+ /** @deprecated use {@link #bar} instead */
+ public void foo() {}
+ public void bar() {}
+}
diff --git a/test/data/format/javaLinkTag.html b/test/data/format/javaLinkTag.html
index 65d33283..b5f03ef3 100644
--- a/test/data/format/javaLinkTag.html
+++ b/test/data/format/javaLinkTag.html
@@ -7,7 +7,7 @@
<br/>
<h1>Foo</h1>
<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Foo</span><span class="symbol"> : </span><span class="identifier">Any</span></code><br/>
-<p>Call <a href="test/test/-foo/bar"></a> to do the job.
+<p>Call <a href="test/test/-foo/bar">#bar()</a> to do the job.
</p>
<br/>
<br/>