test/langtools/jdk/javadoc/doclet/testDeprecatedDocs/TestDeprecatedDocs.java
changeset 53562 0d9dee001667
parent 53097 2e82ca64b25d
child 54137 943cfab99051
equal deleted inserted replaced
53561:3f4b89a17892 53562:0d9dee001667
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   297                 + "</tr>\n"
   297                 + "</tr>\n"
   298                 + "</tbody>\n"
   298                 + "</tbody>\n"
   299                 + "</table>\n"
   299                 + "</table>\n"
   300                 + "</div>");
   300                 + "</div>");
   301     }
   301     }
   302 
       
   303     @Test
       
   304     public void test_html4() {
       
   305         javadoc("-d", "out-html4",
       
   306                 "-html4",
       
   307                 "-sourcepath", testSrc,
       
   308                 "pkg");
       
   309         checkExit(Exit.OK);
       
   310 
       
   311         checkOutput("deprecated-list.html", true,
       
   312                 "<a name=\"forRemoval\">",
       
   313                 "<div class=\"deprecatedSummary\">\n"
       
   314                 + "<table summary=\"For Removal table, listing for removal, and an explanation\">\n"
       
   315                 + "<caption><span>For Removal</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
   316                 + "<tr>\n"
       
   317                 + "<th class=\"colFirst\" scope=\"col\">Element</th>\n"
       
   318                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
   319                 + "</tr>",
       
   320                 "<div class=\"deprecatedSummary\">\n"
       
   321                 + "<table summary=\"Enums table, listing enums, and an explanation\">\n"
       
   322                 + "<caption><span>Enums</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
   323                 + "<tr>\n"
       
   324                 + "<th class=\"colFirst\" scope=\"col\">Enum</th>\n"
       
   325                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
   326                 + "</tr>\n"
       
   327                 + "<tbody>\n"
       
   328                 + "<tr class=\"altColor\">\n"
       
   329                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestEnum.html\" title=\"enum in pkg\">pkg.TestEnum</a></th>\n"
       
   330                 + "<td class=\"colLast\">\n"
       
   331                 + "<div class=\"deprecationComment\">enum_test1 passes.</div>\n"
       
   332                 + "</td>\n"
       
   333                 + "</tr>\n"
       
   334                 + "</tbody>\n"
       
   335                 + "</table>\n"
       
   336                 + "</div>",
       
   337                 "<div class=\"deprecatedSummary\">\n"
       
   338                 + "<table summary=\"Exceptions table, listing exceptions, and an explanation\">\n"
       
   339                 + "<caption><span>Exceptions</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
   340                 + "<tr>\n"
       
   341                 + "<th class=\"colFirst\" scope=\"col\">Exceptions</th>\n"
       
   342                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
   343                 + "</tr>\n"
       
   344                 + "<tbody>\n"
       
   345                 + "<tr class=\"altColor\">\n"
       
   346                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html\" title=\"class in pkg\">pkg.TestException</a></th>\n"
       
   347                 + "<td class=\"colLast\">\n"
       
   348                 + "<div class=\"deprecationComment\">exception_test1 passes.</div>\n"
       
   349                 + "</td>\n"
       
   350                 + "</tr>\n"
       
   351                 + "</tbody>\n"
       
   352                 + "</table>\n"
       
   353                 + "</div>",
       
   354                 "<div class=\"deprecatedSummary\">\n"
       
   355                 + "<table summary=\"Fields table, listing fields, and an explanation\">\n"
       
   356                 + "<caption><span>Fields</span><span class=\"tabEnd\">&nbsp;</span></caption>\n"
       
   357                 + "<tr>\n"
       
   358                 + "<th class=\"colFirst\" scope=\"col\">Field</th>\n"
       
   359                 + "<th class=\"colLast\" scope=\"col\">Description</th>\n"
       
   360                 + "</tr>\n"
       
   361                 + "<tbody>\n"
       
   362                 + "<tr class=\"altColor\">\n"
       
   363                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/DeprecatedClassByAnnotation.html#field\">pkg.DeprecatedClassByAnnotation.field</a></th>\n"
       
   364                 + "<td class=\"colLast\"></td>\n"
       
   365                 + "</tr>\n"
       
   366                 + "<tr class=\"rowColor\">\n"
       
   367                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestAnnotationType.html#field\">pkg.TestAnnotationType.field</a></th>\n"
       
   368                 + "<td class=\"colLast\">\n"
       
   369                 + "<div class=\"deprecationComment\">annotation_test4 passes.</div>\n"
       
   370                 + "</td>\n"
       
   371                 + "</tr>\n"
       
   372                 + "<tr class=\"altColor\">\n"
       
   373                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestClass.html#field\">pkg.TestClass.field</a></th>\n"
       
   374                 + "<td class=\"colLast\">\n"
       
   375                 + "<div class=\"deprecationComment\">class_test2 passes. This is the second sentence of deprecated description for a field.</div>\n"
       
   376                 + "</td>\n"
       
   377                 + "</tr>\n"
       
   378                 + "<tr class=\"rowColor\">\n"
       
   379                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestError.html#field\">pkg.TestError.field</a></th>\n"
       
   380                 + "<td class=\"colLast\">\n"
       
   381                 + "<div class=\"deprecationComment\">error_test2 passes.</div>\n"
       
   382                 + "</td>\n"
       
   383                 + "</tr>\n"
       
   384                 + "<tr class=\"altColor\">\n"
       
   385                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestException.html#field\">pkg.TestException.field</a></th>\n"
       
   386                 + "<td class=\"colLast\">\n"
       
   387                 + "<div class=\"deprecationComment\">exception_test2 passes.</div>\n"
       
   388                 + "</td>\n"
       
   389                 + "</tr>\n"
       
   390                 + "<tr class=\"rowColor\">\n"
       
   391                 + "<th class=\"colDeprecatedItemName\" scope=\"row\"><a href=\"pkg/TestInterface.html#field\">pkg.TestInterface.field</a></th>\n"
       
   392                 + "<td class=\"colLast\">\n"
       
   393                 + "<div class=\"deprecationComment\">interface_test2 passes.</div>\n"
       
   394                 + "</td>\n"
       
   395                 + "</tr>\n"
       
   396                 + "</tbody>\n"
       
   397                 + "</table>\n"
       
   398                 + "</div>");
       
   399     }
       
   400 }
   302 }