/* * @test /nodynamiccopyright/ * @bug 8072945 * @summary test tags and attributes specific to the output HTML version * @library .. * @modules jdk.compiler/com.sun.tools.doclint * @build DocLintTester * @run main DocLintTester -XhtmlVersion:html5 -ref HtmlVersionTagsAttrsTestHtml5.out HtmlVersionTagsAttrsTest.java * @run main DocLintTester -XhtmlVersion:html4 -ref HtmlVersionTagsAttrsTestHtml4.out HtmlVersionTagsAttrsTest.java * @run main DocLintTester -badargs -XhtmlVersion: HtmlVersionTagsAttrsTest.java * @run main DocLintTester -ref HtmlVersionTagsAttrsTestHtml4.out HtmlVersionTagsAttrsTest.java */ /** * Test HTML tags and attributes based on the output HTML version option. */ public class HtmlVersionTagsAttrsTest { /** * Help Page * Test page * Location * alt * * * *
Description
Axis_Test
*
Test Row
* * * * * * * * * * * * * * * * * * * * * * * * * *
Test table, caption, col, colgroup, tbody, * td, tfoot, th, thead and tr Align attribute
HeadCol1HeadCol2
FootCol1FootCol2
BodyCol1BodyCol2
*
*
    *
  1. Test list
  2. *
  3. Another item
  4. *
* *
*
Test list
*
Test Description
*
* imgTest *
*
Test Pre
* Anchor Test * * *
Test border
*/ public void SupportedAttrs_in_html4_not_in_html5() { } /** *
    *
  1. First
  2. *
  3. Second
  4. *
  5. Third
  6. *
* imgTest *
*

Topics

*

Aria attribute test

*

Label test

*
*/ public void SupportedAttrs_in_html5_not_in_html4() { } /** *

Bigger text test

*
Center text test
* Font test *

Text strike

*

Teletype text

*
*
*

Section

*
Another heading
*
* hgroup no longer supported in HTML5. *
*
* Summary *

Details and Summary no longer supported in HTML5

*
*/ public void notSupportedTags_html5() { } /** *
*

Testing section tag

*

Section

* Section text. *
*
*

Testing article tag

*
Article
* Article text. *
*
* * Testing header *
* *
* Main content *
* * *
* imgTest *
Fig. 1
*
*

Marked text test

* * *

Test current time is at night

*

Test WBR text

*/ public void SupportedTags_in_html5_not_in_html4() { } /** *
*

Invalid use of section tag

*
*
*

Invalid use of article tag

*
*
*
* Invalid nested header *
* *
* Invalid nested main *
* Invalid use of header *
* * * *
Test border
*/ public void invalidUsage() { } /** *
Main text
*
* *
* * *
Test border
* * *
Test border
*/ public void validUsage() { } }