test/com/sun/javadoc/testNavagation/TestNavagation.java

Print this page




  23 
  24 /*
  25  * @test
  26  * @bug      4131628 4664607
  27  * @summary  Make sure the Next/Prev Class links iterate through all types.
  28  *           Make sure the navagation is 2 columns, not 3.
  29  * @author   jamieh
  30  * @library  ../lib/
  31  * @build    JavadocTester
  32  * @build    TestNavagation
  33  * @run main TestNavagation
  34  */
  35 
  36 public class TestNavagation extends JavadocTester {
  37 
  38     //Test information.
  39     private static final String BUG_ID = "4131628-4664607";
  40 
  41     //Javadoc arguments.
  42     private static final String[] ARGS = new String[] {
  43         "-d", BUG_ID, "-sourcepath", SRC_DIR, "-source", "1.5", "pkg"
  44     };
  45 
  46     //Input for string search tests.
  47     private static final String[][] TEST = {
  48         {BUG_ID + FS + "pkg" + FS + "A.html", " PREV CLASS "},
  49         {BUG_ID + FS + "pkg" + FS + "A.html",
  50             "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  51         {BUG_ID + FS + "pkg" + FS + "C.html",
  52             "<A HREF=\"../pkg/A.html\" title=\"annotation in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  53         {BUG_ID + FS + "pkg" + FS + "C.html",
  54             "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  55         {BUG_ID + FS + "pkg" + FS + "E.html",
  56             "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  57         {BUG_ID + FS + "pkg" + FS + "E.html",
  58             "<A HREF=\"../pkg/I.html\" title=\"interface in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  59         {BUG_ID + FS + "pkg" + FS + "I.html",
  60             "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  61         {BUG_ID + FS + "pkg" + FS + "I.html", "&nbsp;NEXT CLASS"},
  62         // Test for 4664607
  63         {BUG_ID + FS + "pkg" + FS + "I.html",




  23 
  24 /*
  25  * @test
  26  * @bug      4131628 4664607
  27  * @summary  Make sure the Next/Prev Class links iterate through all types.
  28  *           Make sure the navagation is 2 columns, not 3.
  29  * @author   jamieh
  30  * @library  ../lib/
  31  * @build    JavadocTester
  32  * @build    TestNavagation
  33  * @run main TestNavagation
  34  */
  35 
  36 public class TestNavagation extends JavadocTester {
  37 
  38     //Test information.
  39     private static final String BUG_ID = "4131628-4664607";
  40 
  41     //Javadoc arguments.
  42     private static final String[] ARGS = new String[] {
  43         "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
  44     };
  45 
  46     //Input for string search tests.
  47     private static final String[][] TEST = {
  48         {BUG_ID + FS + "pkg" + FS + "A.html", "&nbsp;PREV CLASS&nbsp;"},
  49         {BUG_ID + FS + "pkg" + FS + "A.html",
  50             "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  51         {BUG_ID + FS + "pkg" + FS + "C.html",
  52             "<A HREF=\"../pkg/A.html\" title=\"annotation in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  53         {BUG_ID + FS + "pkg" + FS + "C.html",
  54             "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  55         {BUG_ID + FS + "pkg" + FS + "E.html",
  56             "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  57         {BUG_ID + FS + "pkg" + FS + "E.html",
  58             "<A HREF=\"../pkg/I.html\" title=\"interface in pkg\"><STRONG>NEXT CLASS</STRONG></A>"},
  59         {BUG_ID + FS + "pkg" + FS + "I.html",
  60             "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><STRONG>PREV CLASS</STRONG></A>"},
  61         {BUG_ID + FS + "pkg" + FS + "I.html", "&nbsp;NEXT CLASS"},
  62         // Test for 4664607
  63         {BUG_ID + FS + "pkg" + FS + "I.html",