mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6851834: Javadoc doclet needs a structured approach to generate the output HTML
Reviewed-by: jjg
This commit is contained in:
parent
6edf2ff9a3
commit
275e77646d
148 changed files with 12175 additions and 7441 deletions
|
@ -48,51 +48,62 @@ public class TestInterface extends JavadocTester {
|
|||
//Input for string search tests.
|
||||
private static final String[][] TEST = {
|
||||
{BUG_ID + FS + "pkg" + FS + "Interface.html",
|
||||
"int <STRONG>method</STRONG>()"},
|
||||
"<pre>int method()</pre>"},
|
||||
{BUG_ID + FS + "pkg" + FS + "Interface.html",
|
||||
"static final int <STRONG>field</STRONG>"},
|
||||
"<pre>static final int field</pre>"},
|
||||
|
||||
|
||||
// Make sure known implementing class list is correct and omits type parameters.
|
||||
{BUG_ID + FS + "pkg" + FS + "Interface.html",
|
||||
"<DT><STRONG>All Known Implementing Classes:</STRONG></DT> " +
|
||||
"<DD><A HREF=\"../pkg/Child.html\" " +
|
||||
"title=\"class in pkg\">Child</A>, " +
|
||||
"<A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">" +
|
||||
"Parent</A></DD>"},
|
||||
"<dl>" + NL + "<dt>All Known Implementing Classes:</dt>" + NL +
|
||||
"<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" +
|
||||
"</a>, <a href=\"../pkg/Parent.html\" title=\"class in pkg\">Parent" +
|
||||
"</a></dd>" + NL + "</dl>"},
|
||||
|
||||
// Make sure "All Implemented Interfaces": has substituted type parameters
|
||||
{BUG_ID + FS + "pkg" + FS + "Child.html",
|
||||
"<STRONG>All Implemented Interfaces:</STRONG></DT> <DD>" +
|
||||
"<A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">" +
|
||||
"Interface</A><T>"
|
||||
"<dl>" + NL + "<dt>All Implemented Interfaces:</dt>" + NL +
|
||||
"<dd><a href=\"../pkg/Interface.html\" title=\"interface in pkg\">" +
|
||||
"Interface</a><T></dd>" + NL + "</dl>"
|
||||
},
|
||||
//Make sure Class Tree has substituted type parameters.
|
||||
{BUG_ID + FS + "pkg" + FS + "Child.html",
|
||||
"<PRE>" + NL +
|
||||
"java.lang.Object" + NL +
|
||||
" <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">pkg.Parent</A><T>" + NL +
|
||||
" <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><STRONG>pkg.Child<T></STRONG>" + NL +
|
||||
"</PRE>"
|
||||
"<ul class=\"inheritance\">" + NL + "<li>java.lang.Object</li>" + NL +
|
||||
"<li>" + NL + "<ul class=\"inheritance\">" + NL +
|
||||
"<li><a href=\"../pkg/Parent.html\" title=\"class in pkg\">" +
|
||||
"pkg.Parent</a><T></li>" + NL + "<li>" + NL +
|
||||
"<ul class=\"inheritance\">" + NL + "<li>pkg.Child<T></li>" + NL +
|
||||
"</ul>" + NL + "</li>" + NL + "</ul>" + NL + "</li>" + NL + "</ul>"
|
||||
},
|
||||
//Make sure "Direct Know Subclasses" omits type parameters
|
||||
{BUG_ID + FS + "pkg" + FS + "Parent.html",
|
||||
"<STRONG>Direct Known Subclasses:</STRONG></DT> <DD><A HREF=\"../pkg/Child.html\" title=\"class in pkg\">Child</A>"
|
||||
"<dl>" + NL + "<dt>Direct Known Subclasses:</dt>" + NL +
|
||||
"<dd><a href=\"../pkg/Child.html\" title=\"class in pkg\">Child" +
|
||||
"</a></dd>" + NL + "</dl>"
|
||||
},
|
||||
//Make sure "Specified By" has substituted type parameters.
|
||||
{BUG_ID + FS + "pkg" + FS + "Child.html",
|
||||
"<STRONG>Specified by:</STRONG></DT><DD><CODE><A HREF=\"../pkg/Interface.html#method()\">method</A></CODE> in interface <CODE><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>"
|
||||
"<dt><strong>Specified by:</strong></dt>" + NL +
|
||||
"<dd><code><a href=\"../pkg/Interface.html#method()\">method</a>" +
|
||||
"</code> in interface <code>" +
|
||||
"<a href=\"../pkg/Interface.html\" title=\"interface in pkg\">" +
|
||||
"Interface</a><<a href=\"../pkg/Child.html\" title=\"type parameter in Child\">" +
|
||||
"T</a>></code></dd>"
|
||||
},
|
||||
//Make sure "Overrides" has substituted type parameters.
|
||||
{BUG_ID + FS + "pkg" + FS + "Child.html",
|
||||
"<STRONG>Overrides:</STRONG></DT><DD><CODE><A HREF=\"../pkg/Parent.html#method()\">method</A></CODE> in class <CODE><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">Parent</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>"
|
||||
"<dt><strong>Overrides:</strong></dt>" + NL +
|
||||
"<dd><code><a href=\"../pkg/Parent.html#method()\">method</a>" +
|
||||
"</code> in class <code><a href=\"../pkg/Parent.html\" " +
|
||||
"title=\"class in pkg\">Parent</a><<a href=\"../pkg/Child.html\" " +
|
||||
"title=\"type parameter in Child\">T</a>></code></dd>"
|
||||
},
|
||||
};
|
||||
private static final String[][] NEGATED_TEST = {
|
||||
{BUG_ID + FS + "pkg" + FS + "Interface.html",
|
||||
"public int <STRONG>method</STRONG>()"},
|
||||
"public int method()"},
|
||||
{BUG_ID + FS + "pkg" + FS + "Interface.html",
|
||||
"public static final int <STRONG>field</STRONG>"},
|
||||
"public static final int field"},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue