8048168: update 2 javadoc tests to add summary attribute for table tag
authorsogoel
Thu, 26 Jun 2014 15:47:52 -0700
changeset 25295 bb0339807d3c
parent 25294 6f74701df48d
child 25296 b4e295d1f7dd
8048168: update 2 javadoc tests to add summary attribute for table tag Reviewed-by: jjg, ksrini
langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java
langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java
langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java
langtools/test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java
--- a/langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java	Thu Jun 26 15:47:52 2014 -0700
@@ -47,7 +47,7 @@
         checkExit(Exit.OK);
 
         checkOutput("pkg1/TestTable.html", true,
-                "<table border cellpadding=3 cellspacing=1>",
+                "<table summary=\"Summary\" border cellpadding=3 cellspacing=1>",
                 "<table class=\"memberSummary\" border=\"0\" cellpadding=\"3\" "
                 + "cellspacing=\"0\" summary=\"Field Summary table, listing fields, "
                 + "and an explanation\">",
--- a/langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java	Thu Jun 26 15:47:52 2014 -0700
@@ -28,7 +28,7 @@
  * should be displayed as a regular table and not have any styles that the javadoc
  * generated tables have.
  *
- * <table border cellpadding=3 cellspacing=1>
+ * <table summary="Summary" border cellpadding=3 cellspacing=1>
  * <caption>Summary of test table</caption>
  *  <tr>
  *    <td></td>
--- a/langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java	Thu Jun 26 15:47:52 2014 -0700
@@ -51,9 +51,9 @@
         checkExit(Exit.OK);
         checkOutput("C.html", true,
                 "This is an <u>underline</u>",
-                "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
+                "<DT><B>To Do:</B><DD><table summary=\"Summary\" cellpadding=2 cellspacing=0><tr>" +
                 "<td bgcolor=\"yellow\">Finish this class.</td></tr></table></DD>",
-                "<DT><B>To Do:</B><DD><table cellpadding=2 cellspacing=0><tr>" +
+                "<DT><B>To Do:</B><DD><table summary=\"Summary\" cellpadding=2 cellspacing=0><tr>" +
                 "<td bgcolor=\"yellow\">Tag in Method.</td></tr></table></DD>");
         checkOutput(Output.STDERR, false,
                 "NullPointerException");
--- a/langtools/test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/langtools/test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java	Thu Jun 26 15:47:52 2014 -0700
@@ -33,7 +33,7 @@
  * <DL>
  * <DT>
  * <B>To Do:</B>
- * <DD><table cellpadding=2 cellspacing=0><tr><td bgcolor="yellow">Fix this!
+ * <DD><table summary="Summary" cellpadding=2 cellspacing=0><tr><td bgcolor="yellow">Fix this!
  * </td></tr></table></DD>
  * </DL>
  *
@@ -150,7 +150,7 @@
      */
     public String toString(Tag tag) {
         return "<DT><B>" + HEADER + "</B><DD>"
-               + "<table cellpadding=2 cellspacing=0><tr><td bgcolor=\"yellow\">"
+               + "<table summary=\"Summary\" cellpadding=2 cellspacing=0><tr><td bgcolor=\"yellow\">"
                + tag.text()
                + "</td></tr></table></DD>\n";
     }
@@ -165,7 +165,7 @@
             return null;
         }
         String result = "\n<DT><B>" + HEADER + "</B><DD>";
-        result += "<table cellpadding=2 cellspacing=0><tr><td bgcolor=\"yellow\">";
+        result += "<table summary=\"Summary\" cellpadding=2 cellspacing=0><tr><td bgcolor=\"yellow\">";
         for (int i = 0; i < tags.length; i++) {
             if (i > 0) {
                 result += ", ";