langtools/test/com/sun/javadoc/testNavigation/TestNavigation.java
changeset 21478 fa4c7cda1b41
parent 21008 af0b915df7cc
child 23971 f5ff1f5a8dee
equal deleted inserted replaced
21477:02dc78554e0c 21478:fa4c7cda1b41
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4131628 4664607 7025314 8023700 7198273 8025633
    26  * @bug      4131628 4664607 7025314 8023700 7198273 8025633 8026567
    27  * @summary  Make sure the Next/Prev Class links iterate through all types.
    27  * @summary  Make sure the Next/Prev Class links iterate through all types.
    28  *           Make sure the navagation is 2 columns, not 3.
    28  *           Make sure the navagation is 2 columns, not 3.
    29  * @author   jamieh
    29  * @author   jamieh
    30  * @library  ../lib/
    30  * @library  ../lib/
    31  * @build    JavadocTester TestNavigation
    31  * @build    JavadocTester TestNavigation
    44 
    44 
    45     //Input for string search tests.
    45     //Input for string search tests.
    46     private static final String[][] TEST = {
    46     private static final String[][] TEST = {
    47         {BUG_ID + FS + "pkg" + FS + "A.html", "<li>Prev&nbsp;Class</li>"},
    47         {BUG_ID + FS + "pkg" + FS + "A.html", "<li>Prev&nbsp;Class</li>"},
    48         {BUG_ID + FS + "pkg" + FS + "A.html",
    48         {BUG_ID + FS + "pkg" + FS + "A.html",
    49             "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">Next&nbsp;Class</span></a>"},
    49             "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>"},
    50         {BUG_ID + FS + "pkg" + FS + "C.html",
    50         {BUG_ID + FS + "pkg" + FS + "C.html",
    51             "<a href=\"../pkg/A.html\" title=\"annotation in pkg\"><span class=\"strong\">Prev&nbsp;Class</span></a>"},
    51             "<a href=\"../pkg/A.html\" title=\"annotation in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>"},
    52         {BUG_ID + FS + "pkg" + FS + "C.html",
    52         {BUG_ID + FS + "pkg" + FS + "C.html",
    53             "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">Next&nbsp;Class</span></a>"},
    53             "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>"},
    54         {BUG_ID + FS + "pkg" + FS + "E.html",
    54         {BUG_ID + FS + "pkg" + FS + "E.html",
    55             "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">Prev&nbsp;Class</span></a>"},
    55             "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>"},
    56         {BUG_ID + FS + "pkg" + FS + "E.html",
    56         {BUG_ID + FS + "pkg" + FS + "E.html",
    57             "<a href=\"../pkg/I.html\" title=\"interface in pkg\"><span class=\"strong\">Next&nbsp;Class</span></a>"},
    57             "<a href=\"../pkg/I.html\" title=\"interface in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>"},
    58         {BUG_ID + FS + "pkg" + FS + "I.html",
    58         {BUG_ID + FS + "pkg" + FS + "I.html",
    59             "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">Prev&nbsp;Class</span></a>"},
    59             "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>"},
    60         {BUG_ID + FS + "pkg" + FS + "I.html", "<li>Next&nbsp;Class</li>"},
    60         {BUG_ID + FS + "pkg" + FS + "I.html", "<li>Next&nbsp;Class</li>"},
    61         // Test for 4664607
    61         // Test for 4664607
    62         {BUG_ID + FS + "pkg" + FS + "I.html",
    62         {BUG_ID + FS + "pkg" + FS + "I.html",
    63             "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>" + NL + "<a name=\"navbar.top.firstrow\">" + NL +
    63             "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>" + NL + "<a name=\"navbar.top.firstrow\">" + NL +
    64             "<!--   -->" + NL + "</a>"}
    64             "<!--   -->" + NL + "</a>"}