changeset 2500:e95a75d1098c

8048168: update 2 javadoc tests to add summary attribute for table tag Reviewed-by: jjg, ksrini
author sogoel
date Thu, 26 Jun 2014 15:47:52 -0700
parents 30107d3a97b2
children 0ae21b11d85b
files test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/javadoc/testHtmlTableStyles/TestHtmlTableStyles.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/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/test/com/sun/javadoc/testHtmlTableStyles/pkg1/TestTable.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/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/test/com/sun/javadoc/testLegacyTaglet/TestLegacyTaglet.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/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/test/com/sun/javadoc/testLegacyTaglet/ToDoTaglet.java	Thu Jun 26 15:41:05 2014 -0700
+++ b/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 += ", ";