Tue, 31 Mar 2015 11:52:45 -0700
Merge
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 8004832
4 * @summary Add new doclint package
5 * @build DocLintTester
6 * @run main DocLintTester -ref AnchorTest.out AnchorTest.java
7 */
9 /** */
10 public class AnchorTest {
11 // tests for <a name=value>
13 /**
14 * <a name=foo></a>
15 */
16 public void a_name_foo() { }
18 /**
19 * <a name=foo></a>
20 */
21 public void a_name_already_defined() { }
23 /**
24 * <a name=></a>
25 */
26 public void a_name_empty() { }
28 /**
29 * <a name=123 ></a>
30 */
31 public void a_name_invalid() { }
33 /**
34 * <a name ></a>
35 */
36 public void a_name_missing() { }
38 // tests for <a id=value>
40 /**
41 * <a id=a_id_foo></a>
42 */
43 public void a_id_foo() { }
45 /**
46 * <a id=foo></a>
47 */
48 public void a_id_already_defined() { }
50 /**
51 * <a id=></a>
52 */
53 public void a_id_empty() { }
55 /**
56 * <a id=123 ></a>
57 */
58 public void a_id_invalid() { }
60 /**
61 * <a id ></a>
62 */
63 public void a_id_missing() { }
65 // tests for id=value on non-<a> tags
67 /**
68 * <p id=p_id_foo>text</p>
69 */
70 public void p_id_foo() { }
72 /**
73 * <p id=foo>text</p>
74 */
75 public void p_id_already_defined() { }
77 /**
78 * <p id=>text</p>
79 */
80 public void p_id_empty() { }
82 /**
83 * <p id=123 >text</p>
84 */
85 public void p_id_invalid() { }
87 /**
88 * <p id >text</p>
89 */
90 public void p_id_missing() { }
93 }