test/langtools/jdk/javadoc/doclet/testPackagePage/TestPackagePage.java
changeset 50167 cc705c956798
parent 48654 36f58bd6269f
child 52616 1a395165c09b
equal deleted inserted replaced
50166:1d683e243d8d 50167:cc705c956798
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4492643 4689286
    26  * @bug 4492643 4689286 8196201
    27  * @summary Test that a package page is properly generated when a .java file
    27  * @summary Test that a package page is properly generated when a .java file
    28  * passed to Javadoc.  Also test that the proper package links are generated
    28  * passed to Javadoc.  Also test that the proper package links are generated
    29  * when single or multiple packages are documented.
    29  * when single or multiple packages are documented.
    30  * @author jamieh
    30  * @author jamieh
    31  * @library ../lib
    31  * @library ../lib
    80             "<li>Package</li>");
    80             "<li>Package</li>");
    81         checkOutput("index-all.html", true,
    81         checkOutput("index-all.html", true,
    82             "<li>Package</li>");
    82             "<li>Package</li>");
    83         checkOutput("help-doc.html", true,
    83         checkOutput("help-doc.html", true,
    84             "<li>Package</li>");
    84             "<li>Package</li>");
       
    85         checkOutput("allclasses-index.html", true,
       
    86                 "<table class=\"typeSummary\">\n"
       
    87                 + "<caption><span>Class Summary</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
    88                 + "<tr>\n"
       
    89                 + "<th class=\"colFirst\" scope=\"col\">Class</th>\n"
       
    90                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
    91                 + "</tr>\n");
       
    92         checkOutput("allpackages-index.html", true,
       
    93                 "<table class=\"packagesSummary\">\n"
       
    94                 + "<caption><span>Package Summary</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
    95                 + "<tr>\n"
       
    96                 + "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
       
    97                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
    98                 + "</tr>\n");
       
    99         checkOutput("type-search-index.js", true,
       
   100                 "{\"l\":\"All Classes\",\"url\":\"allclasses-index.html\"}");
       
   101         checkOutput("package-search-index.js", true,
       
   102                 "{\"l\":\"All Packages\",\"url\":\"allpackages-index.html\"}");
       
   103         checkOutput("index-all.html", true,
       
   104                 "<br><a href=\"allclasses-index.html\">All&nbsp;Classes</a>&nbsp;"
       
   105                 + "<a href=\"allpackages-index.html\">All&nbsp;Packages</a>");
    85     }
   106     }
    86 }
   107 }