equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4494033 7028815 7052425 8007338 8023608 8008164 8016549 8072461 8154261 8162363 8160196 8151743 8177417 |
26 * @bug 4494033 7028815 7052425 8007338 8023608 8008164 8016549 8072461 8154261 8162363 8160196 8151743 8177417 |
27 * 8175218 8176452 8181215 8182263 8183511 8169819 8183037 8185369 |
27 * 8175218 8176452 8181215 8182263 8183511 8169819 8183037 8185369 8182765 |
28 * @summary Run tests on doclet stylesheet. |
28 * @summary Run tests on doclet stylesheet. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib |
30 * @library ../lib |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
32 * @build JavadocTester |
32 * @build JavadocTester |
43 @Test |
43 @Test |
44 void test() { |
44 void test() { |
45 javadoc("-d", "out", |
45 javadoc("-d", "out", |
46 "-sourcepath", testSrc, |
46 "-sourcepath", testSrc, |
47 "pkg"); |
47 "pkg"); |
48 checkExit(Exit.OK); |
48 checkExit(Exit.ERROR); |
|
49 |
|
50 checkOutput(Output.OUT, true, |
|
51 "attribute not supported in HTML5: name"); |
49 |
52 |
50 // TODO: most of this test seems a bit silly, since javadoc is simply |
53 // TODO: most of this test seems a bit silly, since javadoc is simply |
51 // copying in the stylesheet from the source directory |
54 // copying in the stylesheet from the source directory |
52 checkOutput("stylesheet.css", true, |
55 checkOutput("stylesheet.css", true, |
53 "body {\n" |
56 "body {\n" |
249 + "td.colLast a:link, td.colLast a:visited,\n" |
252 + "td.colLast a:link, td.colLast a:visited,\n" |
250 + ".constantValuesContainer td a:link, .constantValuesContainer td a:visited {\n" |
253 + ".constantValuesContainer td a:link, .constantValuesContainer td a:visited {\n" |
251 + " font-weight:bold;\n" |
254 + " font-weight:bold;\n" |
252 + "}"); |
255 + "}"); |
253 } |
256 } |
|
257 |
|
258 @Test |
|
259 void test_html4() { |
|
260 javadoc("-d", "out-html4", |
|
261 "-html4", |
|
262 "-sourcepath", testSrc, |
|
263 "pkg"); |
|
264 checkExit(Exit.OK); |
254 } |
265 } |
|
266 } |