equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4973609 8015249 8025633 8026567 6469561 |
26 * @bug 4973609 8015249 8025633 8026567 6469561 8071982 |
27 * @summary Make sure that annotation types with 0 members does not have |
27 * @summary Make sure that annotation types with 0 members does not have |
28 * extra HR tags. |
28 * extra HR tags. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib |
30 * @library ../lib |
31 * @modules jdk.javadoc |
31 * @modules jdk.javadoc |
40 tester.runTests(); |
40 tester.runTests(); |
41 } |
41 } |
42 |
42 |
43 @Test |
43 @Test |
44 void test() { |
44 void test() { |
45 javadoc("-d", "out", |
45 javadoc("-d", "out-1", |
46 "-sourcepath", testSrc, |
46 "-sourcepath", testSrc, |
47 "pkg"); |
47 "pkg"); |
48 checkExit(Exit.OK); |
48 checkExit(Exit.OK); |
49 |
49 |
50 checkOutput("pkg/AnnotationTypeField.html", true, |
50 checkOutput("pkg/AnnotationTypeField.html", true, |
88 checkOutput("pkg/AnnotationType.html", false, |
88 checkOutput("pkg/AnnotationType.html", false, |
89 "<HR>\n\n" |
89 "<HR>\n\n" |
90 + "<P>\n\n" |
90 + "<P>\n\n" |
91 + "<P>" |
91 + "<P>" |
92 + "<!-- ========= END OF CLASS DATA ========= -->" + "<HR>"); |
92 + "<!-- ========= END OF CLASS DATA ========= -->" + "<HR>"); |
|
93 |
|
94 javadoc("-d", "out-2", |
|
95 "-linksource", |
|
96 "-sourcepath", testSrc, |
|
97 "pkg"); |
|
98 checkExit(Exit.OK); |
|
99 |
|
100 checkOutput("src-html/pkg/AnnotationType.html", true, |
|
101 "<title>Source code</title>", |
|
102 "@Documented public @interface AnnotationType {"); |
|
103 |
|
104 checkOutput("src-html/pkg/AnnotationTypeField.html", true, |
|
105 "<title>Source code</title>", |
|
106 "@Documented public @interface AnnotationTypeField {"); |
|
107 |
|
108 checkOutput("pkg/AnnotationType.html", true, |
|
109 "public @interface <a href=\"../src-html/pkg/AnnotationType.html#line.34" |
|
110 + "\">AnnotationType</a></pre>"); |
|
111 |
|
112 checkOutput("pkg/AnnotationTypeField.html", true, |
|
113 "public @interface <a href=\"../src-html/pkg/AnnotationTypeField.html#line.31" |
|
114 + "\">AnnotationTypeField</a></pre>"); |
93 } |
115 } |
94 } |
116 } |