test/com/sun/javadoc/testIndex/TestIndex.java

Print this page




  24 /*
  25  * @test
  26  * @bug      4852280 4517115 4973608 4994589
  27  * @summary  Perform tests on index.html file.
  28  *           Also test that index-all.html has the appropriate output.
  29  *           Test for unnamed package in index.
  30  * @author   jamieh
  31  * @library  ../lib/
  32  * @build    JavadocTester
  33  * @build    TestIndex
  34  * @run main TestIndex
  35  */
  36 
  37 public class TestIndex extends JavadocTester {
  38 
  39     //Test information.
  40     private static final String BUG_ID = "4852280-4517115-4973608-4994589";
  41 
  42     //Javadoc arguments.
  43     private static final String[] ARGS = new String[] {
  44         "-d", BUG_ID, "-source", "1.5", "-sourcepath", SRC_DIR, "pkg", SRC_DIR + FS + "NoPackage.java"
  45     };
  46 
  47     //Input for string search tests.
  48     private static final String[][] TEST = {
  49         //Make sure the horizontal scroll bar does not appear in class frame.
  50         {BUG_ID + FS + "index.html",
  51             "<FRAME src=\"overview-summary.html\" name=\"classFrame\" " +
  52             "title=\"Package, class and interface descriptions\" " +
  53             "scrolling=\"yes\">"},
  54 
  55         //Test index-all.html
  56         {BUG_ID + FS + "index-all.html",
  57             "<A HREF=\"./pkg/C.html\" title=\"class in pkg\"><STRONG>C</STRONG></A>" +
  58             " - Class in <A HREF=\"./pkg/package-summary.html\">pkg</A>"},
  59         {BUG_ID + FS + "index-all.html",
  60             "<A HREF=\"./pkg/Interface.html\" title=\"interface in pkg\">" +
  61             "<STRONG>Interface</STRONG></A> - Interface in " +
  62             "<A HREF=\"./pkg/package-summary.html\">pkg</A>"},
  63         {BUG_ID + FS + "index-all.html",
  64             "<A HREF=\"./pkg/AnnotationType.html\" title=\"annotation in pkg\">" +




  24 /*
  25  * @test
  26  * @bug      4852280 4517115 4973608 4994589
  27  * @summary  Perform tests on index.html file.
  28  *           Also test that index-all.html has the appropriate output.
  29  *           Test for unnamed package in index.
  30  * @author   jamieh
  31  * @library  ../lib/
  32  * @build    JavadocTester
  33  * @build    TestIndex
  34  * @run main TestIndex
  35  */
  36 
  37 public class TestIndex extends JavadocTester {
  38 
  39     //Test information.
  40     private static final String BUG_ID = "4852280-4517115-4973608-4994589";
  41 
  42     //Javadoc arguments.
  43     private static final String[] ARGS = new String[] {
  44         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR + FS + "NoPackage.java"
  45     };
  46 
  47     //Input for string search tests.
  48     private static final String[][] TEST = {
  49         //Make sure the horizontal scroll bar does not appear in class frame.
  50         {BUG_ID + FS + "index.html",
  51             "<FRAME src=\"overview-summary.html\" name=\"classFrame\" " +
  52             "title=\"Package, class and interface descriptions\" " +
  53             "scrolling=\"yes\">"},
  54 
  55         //Test index-all.html
  56         {BUG_ID + FS + "index-all.html",
  57             "<A HREF=\"./pkg/C.html\" title=\"class in pkg\"><STRONG>C</STRONG></A>" +
  58             " - Class in <A HREF=\"./pkg/package-summary.html\">pkg</A>"},
  59         {BUG_ID + FS + "index-all.html",
  60             "<A HREF=\"./pkg/Interface.html\" title=\"interface in pkg\">" +
  61             "<STRONG>Interface</STRONG></A> - Interface in " +
  62             "<A HREF=\"./pkg/package-summary.html\">pkg</A>"},
  63         {BUG_ID + FS + "index-all.html",
  64             "<A HREF=\"./pkg/AnnotationType.html\" title=\"annotation in pkg\">" +