test/jdk/javadoc/doclet/testHref/TestHref.java

Print this page




  57                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
  58                 + "<!--   -->\n"
  59                 + "</a>",
  60                 //Backward compatibility anchor test."pkg/C1.html",
  61                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
  62                 + "<!--   -->\n"
  63                 + "</a>");
  64 
  65         checkOutput("pkg/C2.html", true,
  66                 //{@link} test.
  67                 "Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">",
  68                 //@see test.
  69                 "See Also:</span></dt>\n"
  70                 + "<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">"
  71         );
  72 
  73         checkOutput("pkg/C4.html", true,
  74                 //Header does not link to the page itself.
  75                 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>",
  76                 //Signature does not link to the page itself.
  77                 "public abstract class <span class=\"typeNameLabel\">C4&lt;E extends C4&lt;E&gt;&gt;</span>"
  78         );
  79 
  80         checkOutput(Output.WARNING, false,
  81                 "<a> tag is malformed");
  82     }
  83 }


  57                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
  58                 + "<!--   -->\n"
  59                 + "</a>",
  60                 //Backward compatibility anchor test."pkg/C1.html",
  61                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
  62                 + "<!--   -->\n"
  63                 + "</a>");
  64 
  65         checkOutput("pkg/C2.html", true,
  66                 //{@link} test.
  67                 "Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">",
  68                 //@see test.
  69                 "See Also:</span></dt>\n"
  70                 + "<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">"
  71         );
  72 
  73         checkOutput("pkg/C4.html", true,
  74                 //Header does not link to the page itself.
  75                 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>",
  76                 //Signature does not link to the page itself.
  77                 "public abstract class <span class=\"typeNameLabel\">C4&lt;E extends C4&lt;E&gt;&gt;</span>"
  78         );
  79 
  80         checkOutput(Output.OUT, false,
  81                 "<a> tag is malformed");
  82     }
  83 }