15359
|
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 |
*/
|
|
8 |
|
|
9 |
/** */
|
|
10 |
public class AnchorTest {
|
|
11 |
// tests for <a name=value>
|
|
12 |
|
|
13 |
/**
|
|
14 |
* <a name=foo></a>
|
|
15 |
*/
|
|
16 |
public void a_name_foo() { }
|
|
17 |
|
|
18 |
/**
|
|
19 |
* <a name=foo></a>
|
|
20 |
*/
|
|
21 |
public void a_name_already_defined() { }
|
|
22 |
|
|
23 |
/**
|
|
24 |
* <a name=></a>
|
|
25 |
*/
|
|
26 |
public void a_name_empty() { }
|
|
27 |
|
|
28 |
/**
|
|
29 |
* <a name=123 ></a>
|
|
30 |
*/
|
|
31 |
public void a_name_invalid() { }
|
|
32 |
|
|
33 |
/**
|
|
34 |
* <a name ></a>
|
|
35 |
*/
|
|
36 |
public void a_name_missing() { }
|
|
37 |
|
|
38 |
// tests for <a id=value>
|
|
39 |
|
|
40 |
/**
|
|
41 |
* <a id=a_id_foo></a>
|
|
42 |
*/
|
|
43 |
public void a_id_foo() { }
|
|
44 |
|
|
45 |
/**
|
|
46 |
* <a id=foo></a>
|
|
47 |
*/
|
|
48 |
public void a_id_already_defined() { }
|
|
49 |
|
|
50 |
/**
|
|
51 |
* <a id=></a>
|
|
52 |
*/
|
|
53 |
public void a_id_empty() { }
|
|
54 |
|
|
55 |
/**
|
|
56 |
* <a id=123 ></a>
|
|
57 |
*/
|
|
58 |
public void a_id_invalid() { }
|
|
59 |
|
|
60 |
/**
|
|
61 |
* <a id ></a>
|
|
62 |
*/
|
|
63 |
public void a_id_missing() { }
|
|
64 |
|
|
65 |
// tests for id=value on non-<a> tags
|
|
66 |
|
|
67 |
/**
|
|
68 |
* <p id=p_id_foo>text</p>
|
|
69 |
*/
|
|
70 |
public void p_id_foo() { }
|
|
71 |
|
|
72 |
/**
|
|
73 |
* <p id=foo>text</p>
|
|
74 |
*/
|
|
75 |
public void p_id_already_defined() { }
|
|
76 |
|
|
77 |
/**
|
|
78 |
* <p id=>text</p>
|
|
79 |
*/
|
|
80 |
public void p_id_empty() { }
|
|
81 |
|
|
82 |
/**
|
|
83 |
* <p id=123 >text</p>
|
|
84 |
*/
|
|
85 |
public void p_id_invalid() { }
|
|
86 |
|
|
87 |
/**
|
|
88 |
* <p id >text</p>
|
|
89 |
*/
|
|
90 |
public void p_id_missing() { }
|
|
91 |
|
|
92 |
|
|
93 |
}
|