equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 6227616 8043186 8196202 |
26 * @bug 6227616 8043186 8196202 8223378 |
27 * @summary Test the new -top option. |
27 * @summary Test the new -top option. |
28 * @author jamieh |
28 * @author jamieh |
29 * @library ../../lib |
29 * @library ../../lib |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @build javadoc.tester.* |
31 * @build javadoc.tester.* |
85 "overview-tree.html", |
85 "overview-tree.html", |
86 "constant-values.html", |
86 "constant-values.html", |
87 "help-doc.html"); |
87 "help-doc.html"); |
88 } |
88 } |
89 |
89 |
|
90 @Test |
|
91 public void testNoNavbar() { |
|
92 javadoc("-overview", testSrc("overview.html"), |
|
93 "-use", |
|
94 "-top", "TOP TEXT", |
|
95 "-nonavbar", |
|
96 "-d", "out-3", |
|
97 "-sourcepath", testSrc, |
|
98 "pkg"); |
|
99 checkExit(Exit.OK); |
|
100 |
|
101 checkTopText( |
|
102 "pkg/AnnotationType.html", |
|
103 "pkg/class-use/AnnotationType.html", |
|
104 "pkg/Cl.html", |
|
105 "pkg/class-use/Cl.html", |
|
106 "pkg/package-summary.html", |
|
107 "pkg/package-use.html", |
|
108 "index.html", |
|
109 "overview-tree.html", |
|
110 "constant-values.html", |
|
111 "help-doc.html"); |
|
112 } |
|
113 |
90 void checkTopText(String... files) { |
114 void checkTopText(String... files) { |
91 for (String file : files) { |
115 for (String file : files) { |
92 checkOutput(file, true, "TOP TEXT"); |
116 checkOutput(file, true, "TOP TEXT"); |
93 } |
117 } |
94 } |
118 } |