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() { } | 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 * <h1> ... </h1> 15 */ 16 public class Bad_H1 { } 17 18 /** 19 * <h3> ... </h3> 20 */ 21 public class Missing_H2 { } 22 23 /** 24 * <h2> ... </h2> 25 * <h4> ... </h4> 26 */ 27 public class Missing_H3 { } 28 29 /** 30 * <h2> ... </h2> 31 */ 32 public void bad_h2() { } 33 34 /** 35 * <h4> ... </h4> 36 */ 37 public void missing_h3() { } 38 39 /** 40 * <h3> ... </h3> 41 * <h5> ... </h5> 42 */ 43 public void missing_h5() { } 44 45 /** 46 * <img src="x.jpg"> 47 */ 48 public void missing_alt() { } 49 50 /** 51 * <table summary="ok"><tr><th>head<tr><td>data</table> 52 */ 53 public void table_with_summary() { } 54 55 /** 56 * <table><caption>ok</caption><tr><th>head<tr><td>data</table> 57 */ 58 public void table_with_caption() { } 59 60 /** 61 * <table><tr><th>head<tr><td>data</table> 62 */ 63 public void table_without_summary_and_caption() { } |