Wed, 28 Nov 2012 14:07:26 -0800
Merge
bpatel@243 | 1 | /* |
ohair@798 | 2 | * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
bpatel@243 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bpatel@243 | 4 | * |
bpatel@243 | 5 | * This code is free software; you can redistribute it and/or modify it |
bpatel@243 | 6 | * under the terms of the GNU General Public License version 2 only, as |
bpatel@243 | 7 | * published by the Free Software Foundation. |
bpatel@243 | 8 | * |
bpatel@243 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
bpatel@243 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bpatel@243 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bpatel@243 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
bpatel@243 | 13 | * accompanied this code). |
bpatel@243 | 14 | * |
bpatel@243 | 15 | * You should have received a copy of the GNU General Public License version |
bpatel@243 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
bpatel@243 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bpatel@243 | 18 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * questions. |
bpatel@243 | 22 | */ |
bpatel@243 | 23 | |
bpatel@243 | 24 | /* |
bpatel@243 | 25 | * @test |
bpatel@243 | 26 | * @bug 6786688 |
bpatel@243 | 27 | * @summary HTML tables should have table summary, caption and table headers. |
bpatel@243 | 28 | * @author Bhavesh Patel |
bpatel@243 | 29 | * @library ../lib/ |
bpatel@243 | 30 | * @build JavadocTester |
bpatel@243 | 31 | * @build TestHtmlTableTags |
bpatel@243 | 32 | * @run main TestHtmlTableTags |
bpatel@243 | 33 | */ |
bpatel@243 | 34 | |
bpatel@243 | 35 | public class TestHtmlTableTags extends JavadocTester { |
bpatel@243 | 36 | |
bpatel@243 | 37 | //Test information. |
bpatel@243 | 38 | private static final String BUG_ID = "6786688"; |
bpatel@243 | 39 | |
bpatel@243 | 40 | //Javadoc arguments. |
bpatel@243 | 41 | private static final String[] ARGS = new String[] { |
bpatel@243 | 42 | "-d", BUG_ID, "-sourcepath", SRC_DIR, "-use", "pkg1", "pkg2" |
bpatel@243 | 43 | }; |
bpatel@243 | 44 | |
bpatel@243 | 45 | //Input for string tests for HTML table tags. |
bpatel@243 | 46 | private static final String[][] TABLE_TAGS_TEST = { |
bpatel@243 | 47 | /* |
bpatel@243 | 48 | * Test for validating summary for HTML tables |
bpatel@243 | 49 | */ |
bpatel@243 | 50 | |
bpatel@243 | 51 | //Package summary |
bpatel@243 | 52 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 53 | "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" + |
bpatel@766 | 54 | " cellspacing=\"0\" summary=\"Class Summary table, " + |
bpatel@243 | 55 | "listing classes, and an explanation\">" |
bpatel@243 | 56 | }, |
bpatel@243 | 57 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 58 | "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" + |
bpatel@766 | 59 | " cellspacing=\"0\" summary=\"Interface Summary table, " + |
bpatel@243 | 60 | "listing interfaces, and an explanation\">" |
bpatel@243 | 61 | }, |
bpatel@243 | 62 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 63 | "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" + |
bpatel@766 | 64 | " cellspacing=\"0\" summary=\"Enum Summary table, " + |
bpatel@243 | 65 | "listing enums, and an explanation\">" |
bpatel@243 | 66 | }, |
bpatel@243 | 67 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 68 | "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" + |
bpatel@766 | 69 | " cellspacing=\"0\" summary=\"Annotation Types Summary table, " + |
bpatel@243 | 70 | "listing annotation types, and an explanation\">" |
bpatel@243 | 71 | }, |
bpatel@243 | 72 | // Class documentation |
bpatel@243 | 73 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@766 | 74 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 75 | "cellspacing=\"0\" summary=\"Field Summary table, listing fields, " + |
bpatel@766 | 76 | "and an explanation\">" |
bpatel@243 | 77 | }, |
bpatel@243 | 78 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@766 | 79 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 80 | "cellspacing=\"0\" summary=\"Method Summary table, listing methods, " + |
bpatel@766 | 81 | "and an explanation\">" |
bpatel@243 | 82 | }, |
bpatel@243 | 83 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 84 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 85 | "cellspacing=\"0\" summary=\"Nested Class Summary table, listing " + |
bpatel@766 | 86 | "nested classes, and an explanation\">" |
bpatel@243 | 87 | }, |
bpatel@243 | 88 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 89 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 90 | "cellspacing=\"0\" summary=\"Constructor Summary table, listing " + |
bpatel@766 | 91 | "constructors, and an explanation\">" |
bpatel@243 | 92 | }, |
bpatel@243 | 93 | {BUG_ID + FS + "pkg2" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 94 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 95 | "cellspacing=\"0\" summary=\"Enum Constant Summary table, listing " + |
bpatel@766 | 96 | "enum constants, and an explanation\">" |
bpatel@243 | 97 | }, |
bpatel@243 | 98 | {BUG_ID + FS + "pkg2" + FS + "C3.html", |
bpatel@766 | 99 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 100 | "cellspacing=\"0\" summary=\"Required Element Summary table, " + |
bpatel@243 | 101 | "listing required elements, and an explanation\">" |
bpatel@243 | 102 | }, |
bpatel@243 | 103 | {BUG_ID + FS + "pkg2" + FS + "C4.html", |
bpatel@766 | 104 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 105 | "cellspacing=\"0\" summary=\"Optional Element Summary table, " + |
bpatel@243 | 106 | "listing optional elements, and an explanation\">" |
bpatel@243 | 107 | }, |
bpatel@243 | 108 | // Class use documentation |
bpatel@243 | 109 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "I1.html", |
bpatel@766 | 110 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 111 | "table, listing packages, and an explanation\">" |
bpatel@243 | 112 | }, |
bpatel@243 | 113 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 114 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 115 | "table, listing fields, and an explanation\">" |
bpatel@243 | 116 | }, |
bpatel@243 | 117 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 118 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 119 | "table, listing methods, and an explanation\">" |
bpatel@243 | 120 | }, |
bpatel@243 | 121 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 122 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 123 | "table, listing fields, and an explanation\">" |
bpatel@243 | 124 | }, |
bpatel@243 | 125 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 126 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 127 | "table, listing methods, and an explanation\">" |
bpatel@243 | 128 | }, |
bpatel@243 | 129 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 130 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 131 | "table, listing packages, and an explanation\">" |
bpatel@243 | 132 | }, |
bpatel@243 | 133 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 134 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 135 | "table, listing methods, and an explanation\">" |
bpatel@243 | 136 | }, |
bpatel@243 | 137 | // Package use documentation |
bpatel@243 | 138 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 139 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 140 | "table, listing packages, and an explanation\">" |
bpatel@243 | 141 | }, |
bpatel@243 | 142 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 143 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 144 | "table, listing classes, and an explanation\">" |
bpatel@243 | 145 | }, |
bpatel@243 | 146 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 147 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 148 | "table, listing packages, and an explanation\">" |
bpatel@243 | 149 | }, |
bpatel@243 | 150 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 151 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " + |
bpatel@766 | 152 | "table, listing classes, and an explanation\">" |
bpatel@243 | 153 | }, |
bpatel@243 | 154 | // Deprecated |
bpatel@243 | 155 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 156 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " + |
bpatel@766 | 157 | "summary=\"Deprecated Fields table, listing deprecated fields, " + |
bpatel@766 | 158 | "and an explanation\">" |
bpatel@243 | 159 | }, |
bpatel@243 | 160 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 161 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " + |
bpatel@766 | 162 | "summary=\"Deprecated Methods table, listing deprecated methods, " + |
bpatel@766 | 163 | "and an explanation\">" |
bpatel@243 | 164 | }, |
bpatel@243 | 165 | // Constant values |
bpatel@243 | 166 | {BUG_ID + FS + "constant-values.html", |
bpatel@766 | 167 | "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " + |
bpatel@766 | 168 | "summary=\"Constant Field Values table, listing " + |
bpatel@243 | 169 | "constant fields, and values\">" |
bpatel@243 | 170 | }, |
bpatel@243 | 171 | // Overview Summary |
bpatel@243 | 172 | {BUG_ID + FS + "overview-summary.html", |
bpatel@766 | 173 | "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " + |
bpatel@766 | 174 | "cellspacing=\"0\" summary=\"Packages table, " + |
bpatel@243 | 175 | "listing packages, and an explanation\">" |
bpatel@243 | 176 | }, |
bpatel@243 | 177 | |
bpatel@243 | 178 | /* |
bpatel@243 | 179 | * Test for validating caption for HTML tables |
bpatel@243 | 180 | */ |
bpatel@243 | 181 | |
bpatel@243 | 182 | //Package summary |
bpatel@243 | 183 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 184 | "<caption><span>Class Summary</span><span class=\"tabEnd\">" + |
bpatel@766 | 185 | " </span></caption>" |
bpatel@243 | 186 | }, |
bpatel@243 | 187 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 188 | "<caption><span>Interface Summary</span><span class=\"tabEnd\">" + |
bpatel@766 | 189 | " </span></caption>" |
bpatel@243 | 190 | }, |
bpatel@243 | 191 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 192 | "<caption><span>Enum Summary</span><span class=\"tabEnd\">" + |
bpatel@766 | 193 | " </span></caption>" |
bpatel@243 | 194 | }, |
bpatel@243 | 195 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 196 | "<caption><span>Annotation Types Summary</span><span class=\"tabEnd\">" + |
bpatel@766 | 197 | " </span></caption>" |
bpatel@243 | 198 | }, |
bpatel@243 | 199 | // Class documentation |
bpatel@243 | 200 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@766 | 201 | "<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 202 | }, |
bpatel@243 | 203 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@1417 | 204 | "<caption><span id=\"t0\" class=\"activeTableTab\"><span>All " + |
bpatel@1417 | 205 | "Methods</span><span class=\"tabEnd\"> </span></span>" + |
bpatel@1417 | 206 | "<span id=\"t2\" class=\"tableTab\"><span><a href=\"javascript:show(2);\">" + |
bpatel@1417 | 207 | "Instance Methods</a></span><span class=\"tabEnd\"> </span></span>" + |
bpatel@1417 | 208 | "<span id=\"t4\" class=\"tableTab\"><span><a href=\"javascript:show(8);\">" + |
bpatel@1417 | 209 | "Concrete Methods</a></span><span class=\"tabEnd\"> </span></span>" + |
bpatel@1417 | 210 | "<span id=\"t5\" class=\"tableTab\"><span><a href=\"javascript:show(16);\">" + |
bpatel@1417 | 211 | "Deprecated Methods</a></span><span class=\"tabEnd\"> </span></span>" + |
bpatel@1417 | 212 | "</caption>" |
bpatel@243 | 213 | }, |
bpatel@243 | 214 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 215 | "<caption><span>Nested Classes</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 216 | }, |
bpatel@243 | 217 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 218 | "<caption><span>Constructors</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 219 | }, |
bpatel@243 | 220 | {BUG_ID + FS + "pkg2" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 221 | "<caption><span>Enum Constants</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 222 | }, |
bpatel@243 | 223 | {BUG_ID + FS + "pkg2" + FS + "C3.html", |
bpatel@766 | 224 | "<caption><span>Required Elements</span><span class=\"tabEnd\"> " + |
bpatel@766 | 225 | "</span></caption>" |
bpatel@243 | 226 | }, |
bpatel@243 | 227 | {BUG_ID + FS + "pkg2" + FS + "C4.html", |
bpatel@766 | 228 | "<caption><span>Optional Elements</span><span class=\"tabEnd\"> " + |
bpatel@766 | 229 | "</span></caption>" |
bpatel@243 | 230 | }, |
bpatel@243 | 231 | // Class use documentation |
bpatel@243 | 232 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "I1.html", |
bpatel@766 | 233 | "<caption><span>Packages that use <a href=\"../../pkg1/I1.html\" " + |
bpatel@766 | 234 | "title=\"interface in pkg1\">I1</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 235 | " </span></caption>" |
bpatel@243 | 236 | }, |
bpatel@243 | 237 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 238 | "<caption><span>Fields in <a href=\"../../pkg2/package-summary.html\">" + |
bpatel@766 | 239 | "pkg2</a> declared as <a href=\"../../pkg1/C1.html\" " + |
bpatel@766 | 240 | "title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 241 | "</span></caption>" |
bpatel@243 | 242 | }, |
bpatel@243 | 243 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 244 | "<caption><span>Methods in <a href=\"../../pkg2/package-summary.html\">" + |
bpatel@766 | 245 | "pkg2</a> that return <a href=\"../../pkg1/C1.html\" " + |
bpatel@766 | 246 | "title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 247 | " </span></caption>" |
bpatel@243 | 248 | }, |
bpatel@243 | 249 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 250 | "<caption><span>Fields in <a href=\"../../pkg1/package-summary.html\">" + |
bpatel@766 | 251 | "pkg1</a> declared as <a href=\"../../pkg2/C2.html\" " + |
bpatel@766 | 252 | "title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 253 | " </span></caption>" |
bpatel@243 | 254 | }, |
bpatel@243 | 255 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 256 | "<caption><span>Methods in <a href=\"../../pkg1/package-summary.html\">" + |
bpatel@766 | 257 | "pkg1</a> that return <a href=\"../../pkg2/C2.html\" " + |
bpatel@766 | 258 | "title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 259 | " </span></caption>" |
bpatel@243 | 260 | }, |
bpatel@243 | 261 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 262 | "<caption><span>Methods in <a href=\"../../pkg2/package-summary.html\">" + |
bpatel@766 | 263 | "pkg2</a> that return <a href=\"../../pkg2/C2.ModalExclusionType.html\" " + |
bpatel@766 | 264 | "title=\"enum in pkg2\">C2.ModalExclusionType</a></span>" + |
bpatel@766 | 265 | "<span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 266 | }, |
bpatel@243 | 267 | // Package use documentation |
bpatel@243 | 268 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 269 | "<caption><span>Packages that use <a href=\"../pkg1/package-summary.html\">" + |
bpatel@766 | 270 | "pkg1</a></span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 271 | }, |
bpatel@243 | 272 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 273 | "<caption><span>Classes in <a href=\"../pkg1/package-summary.html\">" + |
bpatel@766 | 274 | "pkg1</a> used by <a href=\"../pkg1/package-summary.html\">pkg1</a>" + |
bpatel@766 | 275 | "</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 276 | }, |
bpatel@243 | 277 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 278 | "<caption><span>Packages that use <a href=\"../pkg2/package-summary.html\">" + |
bpatel@766 | 279 | "pkg2</a></span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 280 | }, |
bpatel@243 | 281 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 282 | "<caption><span>Classes in <a href=\"../pkg2/package-summary.html\">" + |
bpatel@766 | 283 | "pkg2</a> used by <a href=\"../pkg1/package-summary.html\">pkg1</a>" + |
bpatel@766 | 284 | "</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 285 | }, |
bpatel@243 | 286 | // Deprecated |
bpatel@243 | 287 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 288 | "<caption><span>Deprecated Fields</span><span class=\"tabEnd\">" + |
bpatel@766 | 289 | " </span></caption>" |
bpatel@243 | 290 | }, |
bpatel@243 | 291 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 292 | "<caption><span>Deprecated Methods</span><span class=\"tabEnd\">" + |
bpatel@766 | 293 | " </span></caption>" |
bpatel@243 | 294 | }, |
bpatel@243 | 295 | // Constant values |
bpatel@243 | 296 | {BUG_ID + FS + "constant-values.html", |
bpatel@766 | 297 | "<caption><span>pkg1.<a href=\"pkg1/C1.html\" title=\"class in pkg1\">" + |
bpatel@766 | 298 | "C1</a></span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 299 | }, |
bpatel@243 | 300 | // Overview Summary |
bpatel@243 | 301 | {BUG_ID + FS + "overview-summary.html", |
bpatel@766 | 302 | "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>" |
bpatel@243 | 303 | }, |
bpatel@243 | 304 | |
bpatel@243 | 305 | /* |
bpatel@243 | 306 | * Test for validating headers for HTML tables |
bpatel@243 | 307 | */ |
bpatel@243 | 308 | |
bpatel@243 | 309 | //Package summary |
bpatel@243 | 310 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 311 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 312 | "Class</th>" + NL + "<th class=\"colLast\" scope=\"col\"" + |
bpatel@766 | 313 | ">Description</th>" |
bpatel@243 | 314 | }, |
bpatel@243 | 315 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
bpatel@766 | 316 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 317 | "Interface</th>" + NL + "<th class=\"colLast\" scope=\"col\"" + |
bpatel@766 | 318 | ">Description</th>" |
bpatel@243 | 319 | }, |
bpatel@243 | 320 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 321 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 322 | "Enum</th>" + NL + "<th class=\"colLast\" scope=\"col\"" + |
bpatel@766 | 323 | ">Description</th>" |
bpatel@243 | 324 | }, |
bpatel@243 | 325 | {BUG_ID + FS + "pkg2" + FS + "package-summary.html", |
bpatel@766 | 326 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 327 | "Annotation Type</th>" + NL + "<th class=\"colLast\"" + |
bpatel@766 | 328 | " scope=\"col\">Description</th>" |
bpatel@243 | 329 | }, |
bpatel@243 | 330 | // Class documentation |
bpatel@243 | 331 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@766 | 332 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 333 | "<th class=\"colLast\" scope=\"col\">Field and Description</th>" |
bpatel@243 | 334 | }, |
bpatel@243 | 335 | {BUG_ID + FS + "pkg1" + FS + "C1.html", |
bpatel@766 | 336 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 337 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" |
bpatel@243 | 338 | }, |
bpatel@243 | 339 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 340 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 341 | "<th class=\"colLast\" scope=\"col\">Class and Description</th>" |
bpatel@243 | 342 | }, |
bpatel@243 | 343 | {BUG_ID + FS + "pkg2" + FS + "C2.html", |
bpatel@766 | 344 | "<th class=\"colOne\" scope=\"col\">Constructor and Description</th>" |
bpatel@243 | 345 | }, |
bpatel@243 | 346 | {BUG_ID + FS + "pkg2" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 347 | "<th class=\"colOne\" scope=\"col\">Enum Constant and Description</th>" |
bpatel@243 | 348 | }, |
bpatel@243 | 349 | {BUG_ID + FS + "pkg2" + FS + "C3.html", |
bpatel@766 | 350 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 351 | "<th class=\"colLast\" scope=\"col\">Required Element and Description</th>" |
bpatel@243 | 352 | }, |
bpatel@243 | 353 | {BUG_ID + FS + "pkg2" + FS + "C4.html", |
bpatel@766 | 354 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 355 | "<th class=\"colLast\" scope=\"col\">Optional Element and Description</th>" |
bpatel@243 | 356 | }, |
bpatel@243 | 357 | // Class use documentation |
bpatel@243 | 358 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "I1.html", |
bpatel@766 | 359 | "<th class=\"colFirst\" scope=\"col\">Package</th>" + NL + |
bpatel@766 | 360 | "<th class=\"colLast\" scope=\"col\">Description</th>" |
bpatel@243 | 361 | }, |
bpatel@243 | 362 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 363 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 364 | "<th class=\"colLast\" scope=\"col\">Field and Description</th>" |
bpatel@243 | 365 | }, |
bpatel@243 | 366 | {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html", |
bpatel@766 | 367 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 368 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" |
bpatel@243 | 369 | }, |
bpatel@243 | 370 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 371 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 372 | "<th class=\"colLast\" scope=\"col\">Field and Description</th>" |
bpatel@243 | 373 | }, |
bpatel@243 | 374 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.html", |
bpatel@766 | 375 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 376 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" |
bpatel@243 | 377 | }, |
bpatel@243 | 378 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 379 | "<th class=\"colFirst\" scope=\"col\">Package</th>" + NL + |
bpatel@766 | 380 | "<th class=\"colLast\" scope=\"col\">Description</th>" |
bpatel@243 | 381 | }, |
bpatel@243 | 382 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "C2.ModalExclusionType.html", |
bpatel@766 | 383 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 384 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" |
bpatel@243 | 385 | }, |
bpatel@243 | 386 | // Package use documentation |
bpatel@243 | 387 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 388 | "<th class=\"colFirst\" scope=\"col\">Package</th>" + NL + |
bpatel@766 | 389 | "<th class=\"colLast\" scope=\"col\">Description</th>" |
bpatel@243 | 390 | }, |
bpatel@243 | 391 | {BUG_ID + FS + "pkg1" + FS + "package-use.html", |
bpatel@766 | 392 | "<th class=\"colOne\" scope=\"col\">Class and Description</th>" |
bpatel@243 | 393 | }, |
bpatel@243 | 394 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 395 | "<th class=\"colFirst\" scope=\"col\">Package</th>" + NL + |
bpatel@766 | 396 | "<th class=\"colLast\" scope=\"col\">Description</th>" |
bpatel@243 | 397 | }, |
bpatel@243 | 398 | {BUG_ID + FS + "pkg2" + FS + "package-use.html", |
bpatel@766 | 399 | "<th class=\"colOne\" scope=\"col\">Class and Description</th>" |
bpatel@243 | 400 | }, |
bpatel@243 | 401 | // Deprecated |
bpatel@243 | 402 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 403 | "<th class=\"colOne\" scope=\"col\">Field and Description</th>" |
bpatel@243 | 404 | }, |
bpatel@243 | 405 | {BUG_ID + FS + "deprecated-list.html", |
bpatel@766 | 406 | "<th class=\"colOne\" scope=\"col\">Method and Description</th>" |
bpatel@243 | 407 | }, |
bpatel@243 | 408 | // Constant values |
bpatel@243 | 409 | {BUG_ID + FS + "constant-values.html", |
bpatel@766 | 410 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 411 | "Modifier and Type</th>" + NL + "<th" + |
bpatel@766 | 412 | " scope=\"col\">Constant Field</th>" + NL + |
bpatel@766 | 413 | "<th class=\"colLast\" scope=\"col\">Value</th>" |
bpatel@243 | 414 | }, |
bpatel@243 | 415 | // Overview Summary |
bpatel@243 | 416 | {BUG_ID + FS + "overview-summary.html", |
bpatel@766 | 417 | "<th class=\"colFirst\" scope=\"col\">" + |
bpatel@766 | 418 | "Package</th>" + NL + "<th class=\"colLast\" scope=\"col\"" + |
bpatel@766 | 419 | ">Description</th>" |
bpatel@243 | 420 | } |
bpatel@243 | 421 | }; |
bpatel@243 | 422 | private static final String[][] NEGATED_TEST = NO_TEST; |
bpatel@243 | 423 | |
bpatel@243 | 424 | /** |
bpatel@243 | 425 | * The entry point of the test. |
bpatel@243 | 426 | * @param args the array of command line arguments. |
bpatel@243 | 427 | */ |
bpatel@243 | 428 | public static void main(String[] args) { |
bpatel@243 | 429 | TestHtmlTableTags tester = new TestHtmlTableTags(); |
bpatel@243 | 430 | run(tester, ARGS, TABLE_TAGS_TEST, NEGATED_TEST); |
bpatel@243 | 431 | tester.printSummary(); |
bpatel@243 | 432 | } |
bpatel@243 | 433 | |
bpatel@243 | 434 | /** |
bpatel@243 | 435 | * {@inheritDoc} |
bpatel@243 | 436 | */ |
bpatel@243 | 437 | public String getBugId() { |
bpatel@243 | 438 | return BUG_ID; |
bpatel@243 | 439 | } |
bpatel@243 | 440 | |
bpatel@243 | 441 | /** |
bpatel@243 | 442 | * {@inheritDoc} |
bpatel@243 | 443 | */ |
bpatel@243 | 444 | public String getBugName() { |
bpatel@243 | 445 | return getClass().getName(); |
bpatel@243 | 446 | } |
bpatel@243 | 447 | } |