Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/langtools/tools/doclint/AccessibilityTest.java
41144 views
1
/*
2
* @test /nodynamiccopyright/
3
* @bug 8004832 8247955 8247957
4
* @summary Add new doclint package
5
* @modules jdk.javadoc/jdk.javadoc.internal.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_h4() { }
44
45
/**
46
* <img src="x.jpg">
47
*/
48
public void missing_alt() { }
49
50
/**
51
* <table><caption>ok</caption><tr><th>head<tr><td>data</table>
52
*/
53
public void table_with_caption() { }
54
55
/**
56
* <table><tr><th>head<tr><td>data</table>
57
*/
58
public void table_without_caption() { }
59
60
/**
61
* <table role="presentation"><tr><th>head<tr><td>data</table>
62
*/
63
public void table_presentation() { }
64
65
}
66
67
68