langtools/test/tools/doclint/AccessibilityTest.java
author katleman
Tue, 21 Jan 2014 18:17:23 -0800
changeset 22365 895bfde469d4
parent 14962 19ffdfafbcd2
child 30730 d3ce7619db2c
permissions -rw-r--r--
Added tag jdk9-b01 for changeset ae2d94255f32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     1
/*
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
14962
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     3
 * @bug 8004832
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     4
 * @summary Add new doclint package
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     5
 * @build DocLintTester
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     6
 * @run main DocLintTester -Xmsgs:-accessibility AccessibilityTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -ref AccessibilityTest.out AccessibilityTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     8
 */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     9
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    10
/** */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    11
public class AccessibilityTest {
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    12
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    13
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    14
     * <h2> ... </h2>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    15
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    16
    public void missing_h1() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    17
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    18
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    19
     * <h1> ... </h1>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    20
     * <h3> ... </h3>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    21
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    22
    public void missing_h2() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    23
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    24
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    25
     * <img src="x.jpg">
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    26
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    27
    public void missing_alt() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    28
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    29
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    30
     * <table summary="ok"><tr><th>head<tr><td>data</table>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    31
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    32
    public void table_with_summary() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    33
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    34
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    35
     * <table><caption>ok</caption><tr><th>head<tr><td>data</table>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    36
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    37
    public void table_with_caption() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    38
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    39
    /**
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    40
     * <table><tr><th>head<tr><td>data</table>
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    41
     */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    42
    public void table_without_summary_and_caption() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    43
}
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    44