test/langtools/jdk/javadoc/doclet/testNavigation/TestNavigation.java
changeset 48756 ce608a09a666
parent 48654 36f58bd6269f
child 49139 771616d26ca1
equal deleted inserted replaced
48755:fe377d6591ef 48756:ce608a09a666
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743
    26  * @bug      4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027
    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  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    46                 "-sourcepath", testSrc,
    46                 "-sourcepath", testSrc,
    47                 "pkg");
    47                 "pkg");
    48         checkExit(Exit.OK);
    48         checkExit(Exit.OK);
    49 
    49 
    50         checkOutput("pkg/A.html", true,
    50         checkOutput("pkg/A.html", true,
    51                 "<li>Prev&nbsp;Class</li>",
    51                 "<ul class=\"navList\" title=\"Navigation\">\n" +
    52                 "<a href=\"C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>",
       
    53                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    52                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    54 
    53 
    55         checkOutput("pkg/C.html", true,
    54         checkOutput("pkg/C.html", true,
    56                 "<a href=\"A.html\" title=\"annotation in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>",
    55                 "<ul class=\"navList\" title=\"Navigation\">\n" +
    57                 "<a href=\"E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>",
       
    58                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    56                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    59 
    57 
    60         checkOutput("pkg/E.html", true,
    58         checkOutput("pkg/E.html", true,
    61                 "<a href=\"C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>",
    59                 "<ul class=\"navList\" title=\"Navigation\">\n" +
    62                 "<a href=\"I.html\" title=\"interface in pkg\"><span class=\"typeNameLink\">Next&nbsp;Class</span></a>",
       
    63                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    60                 "<li><a href=\"../overview-summary.html\">Overview</a></li>");
    64 
    61 
    65         checkOutput("pkg/I.html", true,
    62         checkOutput("pkg/I.html", true,
    66                 "<a href=\"E.html\" title=\"enum in pkg\"><span class=\"typeNameLink\">Prev&nbsp;Class</span></a>",
       
    67                 "<li>Next&nbsp;Class</li>",
       
    68                 // Test for 4664607
    63                 // Test for 4664607
    69                 "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n"
    64                 "<div class=\"skipNav\"><a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a></div>\n"
    70                 + "<a name=\"navbar.top.firstrow\">\n"
    65                 + "<a name=\"navbar.top.firstrow\">\n"
    71                 + "<!--   -->\n"
    66                 + "<!--   -->\n"
    72                 + "</a>",
    67                 + "</a>",