test/tools/doclint/AccessibilityTest.java

Wed, 13 Aug 2014 14:50:00 -0700

author
katleman
date
Wed, 13 Aug 2014 14:50:00 -0700
changeset 2549
0b6cc4ea670f
parent 1465
a22f23fb7abf
child 2525
2eb010b6cb22
permissions
-rw-r--r--

Added tag jdk8u40-b01 for changeset bf89a471779d

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832
     4  * @summary Add new doclint package
     5  * @build DocLintTester
     6  * @run main DocLintTester -Xmsgs:-accessibility AccessibilityTest.java
     7  * @run main DocLintTester -ref AccessibilityTest.out AccessibilityTest.java
     8  */
    10 /** */
    11 public class AccessibilityTest {
    13     /**
    14      * <h2> ... </h2>
    15      */
    16     public void missing_h1() { }
    18     /**
    19      * <h1> ... </h1>
    20      * <h3> ... </h3>
    21      */
    22     public void missing_h2() { }
    24     /**
    25      * <img src="x.jpg">
    26      */
    27     public void missing_alt() { }
    29     /**
    30      * <table summary="ok"><tr><th>head<tr><td>data</table>
    31      */
    32     public void table_with_summary() { }
    34     /**
    35      * <table><caption>ok</caption><tr><th>head<tr><td>data</table>
    36      */
    37     public void table_with_caption() { }
    39     /**
    40      * <table><tr><th>head<tr><td>data</table>
    41      */
    42     public void table_without_summary_and_caption() { }
    43 }

mercurial