797N/A * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 242N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 242N/A * This code is free software; you can redistribute it and/or modify it 242N/A * under the terms of the GNU General Public License version 2 only, as 242N/A * published by the Free Software Foundation. 242N/A * This code is distributed in the hope that it will be useful, but WITHOUT 242N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 242N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 242N/A * version 2 for more details (a copy is included in the LICENSE file that 242N/A * accompanied this code). 242N/A * You should have received a copy of the GNU General Public License version 242N/A * 2 along with this work; if not, write to the Free Software Foundation, 242N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 553N/A * or visit www.oracle.com if you need additional information or have any 242N/A * @summary HTML tables should have table summary, caption and table headers. 242N/A * @author Bhavesh Patel 242N/A * @build TestHtmlTableTags 242N/A * @run main TestHtmlTableTags 242N/A //Input for string tests for HTML table tags. 242N/A * Test for validating summary for HTML tables 765N/A "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" +
765N/A " cellspacing=\"0\" summary=\"Class Summary table, " +
242N/A "listing classes, and an explanation\">" 765N/A "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" +
765N/A " cellspacing=\"0\" summary=\"Interface Summary table, " +
242N/A "listing interfaces, and an explanation\">" 765N/A "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" +
765N/A " cellspacing=\"0\" summary=\"Enum Summary table, " +
242N/A "listing enums, and an explanation\">" 765N/A "<table class=\"packageSummary\" border=\"0\" cellpadding=\"3\"" +
765N/A " cellspacing=\"0\" summary=\"Annotation Types Summary table, " +
242N/A "listing annotation types, and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Field Summary table, listing fields, " +
765N/A "and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Method Summary table, listing methods, " +
765N/A "and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Nested Class Summary table, listing " +
765N/A "nested classes, and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Constructor Summary table, listing " +
765N/A "constructors, and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Enum Constant Summary table, listing " +
765N/A "enum constants, and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Required Element Summary table, " +
242N/A "listing required elements, and an explanation\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Optional Element Summary table, " +
242N/A "listing optional elements, and an explanation\">" 242N/A // Class use documentation 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing packages, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing fields, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing methods, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing fields, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing methods, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing packages, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing methods, and an explanation\">" 242N/A // Package use documentation 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing packages, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing classes, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing packages, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"Use " +
765N/A "table, listing classes, and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
765N/A "summary=\"Deprecated Fields table, listing deprecated fields, " +
765N/A "and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
765N/A "summary=\"Deprecated Methods table, listing deprecated methods, " +
765N/A "and an explanation\">" 765N/A "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " +
765N/A "summary=\"Constant Field Values table, listing " +
242N/A "constant fields, and values\">" 765N/A "<table class=\"overviewSummary\" border=\"0\" cellpadding=\"3\" " +
765N/A "cellspacing=\"0\" summary=\"Packages table, " +
242N/A "listing packages, and an explanation\">" 242N/A * Test for validating caption for HTML tables 765N/A "<caption><span>Class Summary</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "<caption><span>Interface Summary</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "<caption><span>Enum Summary</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "<caption><span>Annotation Types Summary</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "<caption><span>Fields</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Methods</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Nested Classes</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Constructors</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Enum Constants</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Required Elements</span><span class=\"tabEnd\"> " +
765N/A "<caption><span>Optional Elements</span><span class=\"tabEnd\"> " +
242N/A // Class use documentation 765N/A "title=\"interface in pkg1\">I1</a></span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\"> " +
765N/A "title=\"class in pkg1\">C1</a></span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "title=\"class in pkg2\">C2</a></span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "title=\"enum in pkg2\">C2.ModalExclusionType</a></span>" +
765N/A "<span class=\"tabEnd\"> </span></caption>" 242N/A // Package use documentation 765N/A "pkg1</a></span><span class=\"tabEnd\"> </span></caption>" 765N/A "</span><span class=\"tabEnd\"> </span></caption>" 765N/A "pkg2</a></span><span class=\"tabEnd\"> </span></caption>" 765N/A "</span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Deprecated Fields</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "<caption><span>Deprecated Methods</span><span class=\"tabEnd\">" +
765N/A " </span></caption>" 765N/A "C1</a></span><span class=\"tabEnd\"> </span></caption>" 765N/A "<caption><span>Packages</span><span class=\"tabEnd\"> </span></caption>" 242N/A * Test for validating headers for HTML tables 765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Class</th>" +
NL +
"<th class=\"colLast\" scope=\"col\"" +
765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Interface</th>" +
NL +
"<th class=\"colLast\" scope=\"col\"" +
765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Enum</th>" +
NL +
"<th class=\"colLast\" scope=\"col\"" +
765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Annotation Type</th>" +
NL +
"<th class=\"colLast\"" +
765N/A " scope=\"col\">Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Field and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Method and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Class and Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Constructor and Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Enum Constant and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Required Element and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Optional Element and Description</th>" 242N/A // Class use documentation 765N/A "<th class=\"colFirst\" scope=\"col\">Package</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Field and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Method and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Field and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Method and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Package</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Method and Description</th>" 242N/A // Package use documentation 765N/A "<th class=\"colFirst\" scope=\"col\">Package</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Class and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">Package</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Class and Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Field and Description</th>" 765N/A "<th class=\"colOne\" scope=\"col\">Method and Description</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Modifier and Type</th>" +
NL +
"<th" +
765N/A " scope=\"col\">Constant Field</th>" +
NL +
765N/A "<th class=\"colLast\" scope=\"col\">Value</th>" 765N/A "<th class=\"colFirst\" scope=\"col\">" +
765N/A "Package</th>" +
NL +
"<th class=\"colLast\" scope=\"col\"" +
242N/A * The entry point of the test. 242N/A * @param args the array of command line arguments.