8048168: update 2 javadoc tests to add summary attribute for table tag

Reviewed-by: jjg, ksrini
This commit is contained in:
Sonali Goel 2014-06-26 15:47:52 -07:00
parent 8828870971
commit bbc0df83f4
4 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,7 @@ public class TestHtmlTableStyles extends JavadocTester {
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\">",

View File

@ -28,7 +28,7 @@ package pkg1;
* 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>

View File

@ -51,9 +51,9 @@ public class TestLegacyTaglet extends JavadocTester {
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");

View File

@ -33,7 +33,7 @@ import java.util.Map;
* <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 class ToDoTaglet implements Taglet {
*/
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 @@ public class ToDoTaglet implements Taglet {
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 += ", ";