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