< prev index next >

test/langtools/jdk/javadoc/doclet/testHeadings/TestHeadings.java

Print this page




  45     public void test() {
  46         javadoc("-d", "out",
  47                 "-sourcepath", testSrc,
  48                 "-use",
  49                 "-header", "Test Files",
  50                 "pkg1", "pkg2");
  51         checkExit(Exit.OK);
  52 
  53         //Package summary
  54         checkOutput("pkg1/package-summary.html", true,
  55                 "<th class=\"colFirst\" scope=\"col\">"
  56                 + "Class</th>\n"
  57                 + "<th class=\"colLast\" scope=\"col\""
  58                 + ">Description</th>");
  59 
  60         // Class documentation
  61         checkOutput("pkg1/C1.html", true,
  62                 "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
  63                 + "<th class=\"colSecond\" scope=\"col\">Field</th>\n"
  64                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
  65                 "<h3>Methods inherited from class&nbsp;java.lang.Object</h3>");

  66 
  67         // Class use documentation
  68         checkOutput("pkg1/class-use/C1.html", true,
  69                 "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
  70                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
  71                 "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
  72                 + "<th class=\"colSecond\" scope=\"col\">Field</th>\n"
  73                 + "<th class=\"colLast\" scope=\"col\">Description</th>");
  74 
  75         // Deprecated
  76         checkOutput("deprecated-list.html", true,
  77                 "<th class=\"colFirst\" scope=\"col\">Method</th>\n"
  78                 + "<th class=\"colLast\" scope=\"col\">Description</th>");
  79 
  80         // Constant values
  81         checkOutput("constant-values.html", true,
  82                 "<th class=\"colFirst\" scope=\"col\">"
  83                 + "Modifier and Type</th>\n"
  84                 + "<th class=\"colSecond\" scope=\"col\">Constant Field</th>\n"
  85                 + "<th class=\"colLast\" scope=\"col\">Value</th>");


  45     public void test() {
  46         javadoc("-d", "out",
  47                 "-sourcepath", testSrc,
  48                 "-use",
  49                 "-header", "Test Files",
  50                 "pkg1", "pkg2");
  51         checkExit(Exit.OK);
  52 
  53         //Package summary
  54         checkOutput("pkg1/package-summary.html", true,
  55                 "<th class=\"colFirst\" scope=\"col\">"
  56                 + "Class</th>\n"
  57                 + "<th class=\"colLast\" scope=\"col\""
  58                 + ">Description</th>");
  59 
  60         // Class documentation
  61         checkOutput("pkg1/C1.html", true,
  62                 "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
  63                 + "<th class=\"colSecond\" scope=\"col\">Field</th>\n"
  64                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
  65                 "<h3 id=\"methods.inherited.from.class.java.lang.Object\">"
  66                 + "Methods inherited from class&nbsp;java.lang.Object</h3>");
  67 
  68         // Class use documentation
  69         checkOutput("pkg1/class-use/C1.html", true,
  70                 "<th class=\"colFirst\" scope=\"col\">Package</th>\n"
  71                 + "<th class=\"colLast\" scope=\"col\">Description</th>",
  72                 "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n"
  73                 + "<th class=\"colSecond\" scope=\"col\">Field</th>\n"
  74                 + "<th class=\"colLast\" scope=\"col\">Description</th>");
  75 
  76         // Deprecated
  77         checkOutput("deprecated-list.html", true,
  78                 "<th class=\"colFirst\" scope=\"col\">Method</th>\n"
  79                 + "<th class=\"colLast\" scope=\"col\">Description</th>");
  80 
  81         // Constant values
  82         checkOutput("constant-values.html", true,
  83                 "<th class=\"colFirst\" scope=\"col\">"
  84                 + "Modifier and Type</th>\n"
  85                 + "<th class=\"colSecond\" scope=\"col\">Constant Field</th>\n"
  86                 + "<th class=\"colLast\" scope=\"col\">Value</th>");
< prev index next >