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 */ 9 10/** */ 11public class AccessibilityTest { 12 13 /** 14 * <h2> ... </h2> 15 */ 16 public void missing_h1() { } 17 18 /** 19 * <h1> ... </h1> 20 * <h3> ... </h3> 21 */ 22 public void missing_h2() { } 23 24 /** 25 * <img src="x.jpg"> 26 */ 27 public void missing_alt() { } 28 29 /** 30 * <table summary="ok"><tr><th>head<tr><td>data</table> 31 */ 32 public void table_with_summary() { } 33 34 /** 35 * <table><caption>ok</caption><tr><th>head<tr><td>data</table> 36 */ 37 public void table_with_caption() { } 38 39 /** 40 * <table><tr><th>head<tr><td>data</table> 41 */ 42 public void table_without_summary_and_caption() { } 43} 44 45 46