Tue, 14 May 2013 10:14:56 -0700
8012311: Cleanup names and duplicatre code in TagletManager
Reviewed-by: darcy
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 8004832 |
aoqi@0 | 4 | * @summary Add new doclint package |
aoqi@0 | 5 | * @build DocLintTester |
aoqi@0 | 6 | * @run main DocLintTester -ref AnchorTest.out AnchorTest.java |
aoqi@0 | 7 | */ |
aoqi@0 | 8 | |
aoqi@0 | 9 | /** */ |
aoqi@0 | 10 | public class AnchorTest { |
aoqi@0 | 11 | // tests for <a name=value> |
aoqi@0 | 12 | |
aoqi@0 | 13 | /** |
aoqi@0 | 14 | * <a name=foo></a> |
aoqi@0 | 15 | */ |
aoqi@0 | 16 | public void a_name_foo() { } |
aoqi@0 | 17 | |
aoqi@0 | 18 | /** |
aoqi@0 | 19 | * <a name=foo></a> |
aoqi@0 | 20 | */ |
aoqi@0 | 21 | public void a_name_already_defined() { } |
aoqi@0 | 22 | |
aoqi@0 | 23 | /** |
aoqi@0 | 24 | * <a name=></a> |
aoqi@0 | 25 | */ |
aoqi@0 | 26 | public void a_name_empty() { } |
aoqi@0 | 27 | |
aoqi@0 | 28 | /** |
aoqi@0 | 29 | * <a name=123 ></a> |
aoqi@0 | 30 | */ |
aoqi@0 | 31 | public void a_name_invalid() { } |
aoqi@0 | 32 | |
aoqi@0 | 33 | /** |
aoqi@0 | 34 | * <a name ></a> |
aoqi@0 | 35 | */ |
aoqi@0 | 36 | public void a_name_missing() { } |
aoqi@0 | 37 | |
aoqi@0 | 38 | // tests for <a id=value> |
aoqi@0 | 39 | |
aoqi@0 | 40 | /** |
aoqi@0 | 41 | * <a id=a_id_foo></a> |
aoqi@0 | 42 | */ |
aoqi@0 | 43 | public void a_id_foo() { } |
aoqi@0 | 44 | |
aoqi@0 | 45 | /** |
aoqi@0 | 46 | * <a id=foo></a> |
aoqi@0 | 47 | */ |
aoqi@0 | 48 | public void a_id_already_defined() { } |
aoqi@0 | 49 | |
aoqi@0 | 50 | /** |
aoqi@0 | 51 | * <a id=></a> |
aoqi@0 | 52 | */ |
aoqi@0 | 53 | public void a_id_empty() { } |
aoqi@0 | 54 | |
aoqi@0 | 55 | /** |
aoqi@0 | 56 | * <a id=123 ></a> |
aoqi@0 | 57 | */ |
aoqi@0 | 58 | public void a_id_invalid() { } |
aoqi@0 | 59 | |
aoqi@0 | 60 | /** |
aoqi@0 | 61 | * <a id ></a> |
aoqi@0 | 62 | */ |
aoqi@0 | 63 | public void a_id_missing() { } |
aoqi@0 | 64 | |
aoqi@0 | 65 | // tests for id=value on non-<a> tags |
aoqi@0 | 66 | |
aoqi@0 | 67 | /** |
aoqi@0 | 68 | * <p id=p_id_foo>text</p> |
aoqi@0 | 69 | */ |
aoqi@0 | 70 | public void p_id_foo() { } |
aoqi@0 | 71 | |
aoqi@0 | 72 | /** |
aoqi@0 | 73 | * <p id=foo>text</p> |
aoqi@0 | 74 | */ |
aoqi@0 | 75 | public void p_id_already_defined() { } |
aoqi@0 | 76 | |
aoqi@0 | 77 | /** |
aoqi@0 | 78 | * <p id=>text</p> |
aoqi@0 | 79 | */ |
aoqi@0 | 80 | public void p_id_empty() { } |
aoqi@0 | 81 | |
aoqi@0 | 82 | /** |
aoqi@0 | 83 | * <p id=123 >text</p> |
aoqi@0 | 84 | */ |
aoqi@0 | 85 | public void p_id_invalid() { } |
aoqi@0 | 86 | |
aoqi@0 | 87 | /** |
aoqi@0 | 88 | * <p id >text</p> |
aoqi@0 | 89 | */ |
aoqi@0 | 90 | public void p_id_missing() { } |
aoqi@0 | 91 | |
aoqi@0 | 92 | |
aoqi@0 | 93 | } |