test/langtools/jdk/javadoc/doclet/testOptions/TestOptions.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54821 85ccac8a8c13
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
   191         checkLinks();
   191         checkLinks();
   192         checkOutput("linksource/AnnotationTypeField.html", true,
   192         checkOutput("linksource/AnnotationTypeField.html", true,
   193                 "<pre>@Documented\npublic @interface <a href="
   193                 "<pre>@Documented\npublic @interface <a href="
   194                 + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
   194                 + "\"../src-html/linksource/AnnotationTypeField.html#line.31\">"
   195                 + "AnnotationTypeField</a></pre>",
   195                 + "AnnotationTypeField</a></pre>",
   196                 "<h3>DEFAULT_NAME</h3>\n"
   196                 "<h3><a id=\"DEFAULT_NAME\">DEFAULT_NAME</a></h3>\n"
   197                 + "<a id=\"DEFAULT_NAME\">\n"
   197                 + "<div class=\"memberSignature\"><span class=\"modifiers\">static final</span>&nbsp;"
   198                 + "<!--   -->\n"
   198                 + "<span class=\"returnType\">java.lang.String</span>&nbsp;<span class=\"memberName\">"
   199                 + "</a>\n"
   199                 + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">DEFAULT_NAME</a></span></div>",
   200                 + "<pre>static final&nbsp;java.lang.String&nbsp;"
   200                 "<h3><a id=\"name()\">name</a></h3>\n"
   201                 + "<a href=\"../src-html/linksource/AnnotationTypeField.html#line.32\">"
   201                 + "<div class=\"memberSignature\"><span class=\"returnType\">java.lang.String</span>&nbsp;"
   202                 + "DEFAULT_NAME</a></pre>",
   202                 + "<span class=\"memberName\"><a href=\"../src-html/linksource/AnnotationTypeField.html#line.34\">"
   203                 "<h3>name</h3>\n"
   203                 + "name</a></span></div>");
   204                 + "<a id=\"name()\">\n"
       
   205                 + "<!--   -->\n"
       
   206                 + "</a>\n"
       
   207                 + "<pre>java.lang.String&nbsp;<a href="
       
   208                 + "\"../src-html/linksource/AnnotationTypeField.html#line.34\">name</a></pre>");
       
   209 
   204 
   210         checkOutput("src-html/linksource/AnnotationTypeField.html", true,
   205         checkOutput("src-html/linksource/AnnotationTypeField.html", true,
   211                 "<title>Source code</title>",
   206                 "<title>Source code</title>",
   212                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">"
   207                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">"
   213                 + "@Documented public @interface AnnotationTypeField {</a>");
   208                 + "@Documented public @interface AnnotationTypeField {</a>");
   214 
   209 
   215         checkOutput("linksource/Properties.html", true,
   210         checkOutput("linksource/Properties.html", true,
   216                 "<pre>public class <a href=\"../src-html/linksource/Properties.html#line.29\">"
   211                 "<pre>public class <a href=\"../src-html/linksource/Properties.html#line.29\">"
   217                 + "Properties</a>",
   212                 + "Properties</a>",
   218                 "<pre>public&nbsp;java.lang.Object <a href="
   213                 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span>&nbsp;"
   219                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a></pre>",
   214                 + "<span class=\"returnType\">java.lang.Object</span>&nbsp;<span class=\"memberName\">"
   220                 "<pre class=\"methodSignature\">public&nbsp;java.lang.Object&nbsp;<a href="
   215                 + "<a href=\"../src-html/linksource/Properties.html#line.31\">someProperty</a></span></div>");
   221                 + "\"../src-html/linksource/Properties.html#line.31\">someProperty</a>()</pre>");
       
   222 
   216 
   223         checkOutput("src-html/linksource/Properties.html", true,
   217         checkOutput("src-html/linksource/Properties.html", true,
   224                 "<title>Source code</title>",
   218                 "<title>Source code</title>",
   225                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
   219                 "<span class=\"sourceLineNo\">031</span><a id=\"line.31\">    "
   226                 + "public Object someProperty() {</a>");
   220                 + "public Object someProperty() {</a>");
   227 
   221 
   228         checkOutput("linksource/SomeClass.html", true,
   222         checkOutput("linksource/SomeClass.html", true,
   229                 "<pre>public class <a href=\"../src-html/linksource/SomeClass.html#line.29\">"
   223                 "<pre>public class <a href=\"../src-html/linksource/SomeClass.html#line.29\">"
   230                 + "SomeClass</a>\nextends java.lang.Object</pre>",
   224                 + "SomeClass</a>\nextends java.lang.Object</pre>",
   231                 "<pre>public&nbsp;int <a href=\"../src-html/linksource/SomeClass.html#line.31\">"
   225                 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span>&nbsp;"
   232                 + "field</a></pre>",
   226                 + "<span class=\"returnType\">int</span>&nbsp;<span class=\"memberName\">"
   233                 "<pre>public&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.33\">"
   227                 + "<a href=\"../src-html/linksource/SomeClass.html#line.31\">field</a></span></div>",
   234                 + "SomeClass</a>()</pre>",
   228                 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span>&nbsp;"
   235                 "<pre class=\"methodSignature\">public&nbsp;int&nbsp;<a href=\"../src-html/linksource/SomeClass.html#line.36\">"
   229                 + "<span class=\"memberName\"><a href=\"../src-html/linksource/SomeClass.html#line.33\">"
   236                 + "method</a>()</pre>");
   230                 + "SomeClass</a></span>()</div>",
       
   231                 "<div class=\"memberSignature\"><span class=\"modifiers\">public</span>&nbsp;"
       
   232                 + "<span class=\"returnType\">int</span>&nbsp;<span class=\"memberName\">"
       
   233                 + "<a href=\"../src-html/linksource/SomeClass.html#line.36\">method</a></span>()</div>");
   237 
   234 
   238         checkOutput("src-html/linksource/SomeClass.html", true,
   235         checkOutput("src-html/linksource/SomeClass.html", true,
   239                 "<title>Source code</title>",
   236                 "<title>Source code</title>",
   240                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">"
   237                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">"
   241                 + "public class SomeClass {</a>",
   238                 + "public class SomeClass {</a>",
   245                 + "public SomeClass() {</a>",
   242                 + "public SomeClass() {</a>",
   246                 "<span class=\"sourceLineNo\">036</span><a id=\"line.36\">    "
   243                 "<span class=\"sourceLineNo\">036</span><a id=\"line.36\">    "
   247                 + "public int method() {</a>");
   244                 + "public int method() {</a>");
   248 
   245 
   249         checkOutput("linksource/SomeEnum.html", true,
   246         checkOutput("linksource/SomeEnum.html", true,
   250                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
   247                 "<div class=\"memberSignature\"><span class=\"modifiers\">public static final</span>&nbsp;"
   251                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
   248                 + "<span class=\"returnType\"><a href=\"SomeEnum.html\" title=\"enum in linksource\">"
   252                 + "\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></pre>",
   249                 + "SomeEnum</a></span>&nbsp;<span class=\"memberName\">"
   253                 "<pre>public static final&nbsp;<a href=\"SomeEnum.html\" "
   250                 + "<a href=\"../src-html/linksource/SomeEnum.html#line.29\">VALUE1</a></span></div>",
   254                 + "title=\"enum in linksource\">SomeEnum</a> <a href="
   251                 "<div class=\"memberSignature\"><span class=\"modifiers\">public static final</span>&nbsp;"
   255                 + "\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></pre>");
   252                 + "<span class=\"returnType\"><a href=\"SomeEnum.html\" title=\"enum in linksource\">"
       
   253                 + "SomeEnum</a></span>&nbsp;<span class=\"memberName\">"
       
   254                 + "<a href=\"../src-html/linksource/SomeEnum.html#line.30\">VALUE2</a></span></div>");
   256 
   255 
   257         checkOutput("src-html/linksource/SomeEnum.html", true,
   256         checkOutput("src-html/linksource/SomeEnum.html", true,
   258                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">    VALUE1,</a>",
   257                 "<span class=\"sourceLineNo\">029</span><a id=\"line.29\">    VALUE1,</a>",
   259                 "<span class=\"sourceLineNo\">030</span><a id=\"line.30\">    VALUE2</a>");
   258                 "<span class=\"sourceLineNo\">030</span><a id=\"line.30\">    VALUE2</a>");
   260     }
   259     }