author | mcimadamore |
Wed, 26 Oct 2016 15:41:25 +0100 | |
changeset 41856 | 13a056e8f16e |
parent 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
15359 | 1 |
/* |
2 |
* @test /nodynamiccopyright/ |
|
3 |
* @bug 8004832 |
|
4 |
* @summary Add new doclint package |
|
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
15359
diff
changeset
|
5 |
* @modules jdk.compiler/com.sun.tools.doclint |
15359 | 6 |
* @build DocLintTester |
7 |
* @run main DocLintTester -ref AnchorTest.out AnchorTest.java |
|
8 |
*/ |
|
9 |
||
10 |
/** */ |
|
11 |
public class AnchorTest { |
|
12 |
// tests for <a name=value> |
|
13 |
||
14 |
/** |
|
15 |
* <a name=foo></a> |
|
16 |
*/ |
|
17 |
public void a_name_foo() { } |
|
18 |
||
19 |
/** |
|
20 |
* <a name=foo></a> |
|
21 |
*/ |
|
22 |
public void a_name_already_defined() { } |
|
23 |
||
24 |
/** |
|
25 |
* <a name=></a> |
|
26 |
*/ |
|
27 |
public void a_name_empty() { } |
|
28 |
||
29 |
/** |
|
30 |
* <a name=123 ></a> |
|
31 |
*/ |
|
32 |
public void a_name_invalid() { } |
|
33 |
||
34 |
/** |
|
35 |
* <a name ></a> |
|
36 |
*/ |
|
37 |
public void a_name_missing() { } |
|
38 |
||
39 |
// tests for <a id=value> |
|
40 |
||
41 |
/** |
|
42 |
* <a id=a_id_foo></a> |
|
43 |
*/ |
|
44 |
public void a_id_foo() { } |
|
45 |
||
46 |
/** |
|
47 |
* <a id=foo></a> |
|
48 |
*/ |
|
49 |
public void a_id_already_defined() { } |
|
50 |
||
51 |
/** |
|
52 |
* <a id=></a> |
|
53 |
*/ |
|
54 |
public void a_id_empty() { } |
|
55 |
||
56 |
/** |
|
57 |
* <a id=123 ></a> |
|
58 |
*/ |
|
59 |
public void a_id_invalid() { } |
|
60 |
||
61 |
/** |
|
62 |
* <a id ></a> |
|
63 |
*/ |
|
64 |
public void a_id_missing() { } |
|
65 |
||
66 |
// tests for id=value on non-<a> tags |
|
67 |
||
68 |
/** |
|
69 |
* <p id=p_id_foo>text</p> |
|
70 |
*/ |
|
71 |
public void p_id_foo() { } |
|
72 |
||
73 |
/** |
|
74 |
* <p id=foo>text</p> |
|
75 |
*/ |
|
76 |
public void p_id_already_defined() { } |
|
77 |
||
78 |
/** |
|
79 |
* <p id=>text</p> |
|
80 |
*/ |
|
81 |
public void p_id_empty() { } |
|
82 |
||
83 |
/** |
|
84 |
* <p id=123 >text</p> |
|
85 |
*/ |
|
86 |
public void p_id_invalid() { } |
|
87 |
||
88 |
/** |
|
89 |
* <p id >text</p> |
|
90 |
*/ |
|
91 |
public void p_id_missing() { } |
|
92 |
||
93 |
||
94 |
} |