161 + "<div class=\"navPadding\"> </div>\n" |
161 + "<div class=\"navPadding\"> </div>\n" |
162 + "<script type=\"text/javascript\"><!--\n" |
162 + "<script type=\"text/javascript\"><!--\n" |
163 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
163 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
164 + "//-->\n" |
164 + "//-->\n" |
165 + "</script>\n" |
165 + "</script>\n" |
166 + "<!-- ======== START OF CLASS DATA ======== -->"); |
|
167 |
|
168 checkOutput("pkg/package-summary.html", false, |
|
169 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
170 + "</div>\n" |
|
171 + "<div class=\"navPadding\"> </div>\n" |
|
172 + "<script type=\"text/javascript\"><!--\n" |
|
173 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
|
174 + "//-->\n" |
|
175 + "</script>\n" |
|
176 + "<div class=\"header\">"); |
|
177 } |
|
178 |
|
179 // Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified for HTML5. |
|
180 @Test |
|
181 public void test3(Path ignore) { |
|
182 javadoc("-d", "out-3", |
|
183 "-html5", |
|
184 "-nonavbar", |
|
185 "--frames", |
|
186 "-sourcepath", testSrc, |
|
187 "pkg"); |
|
188 checkExit(Exit.OK); |
|
189 checkSubNav(); |
|
190 |
|
191 checkOutput("pkg/A.html", false, |
|
192 "<!-- ========= END OF TOP NAVBAR ========= -->\n" |
|
193 + "</div>\n" |
|
194 + "<div class=\"navPadding\"> </div>\n" |
|
195 + "<script type=\"text/javascript\"><!--\n" |
|
196 + "$('.navPadding').css('padding-top', $('.fixedNav').css(\"height\"));\n" |
|
197 + "//-->\n" |
|
198 + "</script>\n" |
|
199 + "</nav>\n" |
166 + "</nav>\n" |
200 + "</header>\n" |
167 + "</header>\n" |
201 + "<!-- ======== START OF CLASS DATA ======== -->"); |
168 + "<!-- ======== START OF CLASS DATA ======== -->"); |
202 |
169 |
203 checkOutput("pkg/package-summary.html", false, |
170 checkOutput("pkg/package-summary.html", false, |
210 + "</script>\n" |
177 + "</script>\n" |
211 + "</nav>"); |
178 + "</nav>"); |
212 } |
179 } |
213 |
180 |
214 @Test |
181 @Test |
215 public void test4(Path base) throws IOException { |
182 public void test3(Path base) throws IOException { |
216 Path src = base.resolve("src"); |
183 Path src = base.resolve("src"); |
217 tb.writeJavaFiles(src, |
184 tb.writeJavaFiles(src, |
218 "package pkg1; public class A {\n" |
185 "package pkg1; public class A {\n" |
219 + " /**\n" |
186 + " /**\n" |
220 + " * Class with members.\n" |
187 + " * Class with members.\n" |
253 |
220 |
254 tb.writeJavaFiles(src, |
221 tb.writeJavaFiles(src, |
255 "package pkg1; public interface InterfaceWithNoMembers {\n" |
222 "package pkg1; public interface InterfaceWithNoMembers {\n" |
256 + "}"); |
223 + "}"); |
257 |
224 |
258 javadoc("-d", "out-4", |
225 javadoc("-d", "out-3", |
259 "-sourcepath", src.toString(), |
226 "-sourcepath", src.toString(), |
260 "pkg1"); |
227 "pkg1"); |
261 checkExit(Exit.OK); |
228 checkExit(Exit.OK); |
262 |
229 |
263 checkOrder("pkg1/A.X.html", |
230 checkOrder("pkg1/A.X.html", |