21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4494033 7028815 |
26 * @bug 4494033 7028815 7052425 |
27 * @summary Run tests on doclet stylesheet. |
27 * @summary Run tests on doclet stylesheet. |
28 * @author jamieh |
28 * @author jamieh |
29 * @library ../lib/ |
29 * @library ../lib/ |
30 * @build JavadocTester TestStylesheet |
30 * @build JavadocTester TestStylesheet |
31 * @run main TestStylesheet |
31 * @run main TestStylesheet |
32 */ |
32 */ |
33 |
33 |
34 public class TestStylesheet extends JavadocTester { |
34 public class TestStylesheet extends JavadocTester { |
35 |
35 |
36 //Test information. |
36 //Test information. |
37 private static final String BUG_ID = "4494033-7028815"; |
37 private static final String BUG_ID = "4494033-7028815-7052425"; |
38 |
38 |
39 //Javadoc arguments. |
39 //Javadoc arguments. |
40 private static final String[] ARGS = new String[] { |
40 private static final String[] ARGS = new String[] { |
41 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
41 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
42 }; |
42 }; |
50 {BUG_ID + FS + "stylesheet.css", |
50 {BUG_ID + FS + "stylesheet.css", |
51 "/*" + NL + "Heading styles" + NL + "*/"}, |
51 "/*" + NL + "Heading styles" + NL + "*/"}, |
52 {BUG_ID + FS + "stylesheet.css", |
52 {BUG_ID + FS + "stylesheet.css", |
53 "/*" + NL + "Navigation bar styles" + NL + "*/"}, |
53 "/*" + NL + "Navigation bar styles" + NL + "*/"}, |
54 {BUG_ID + FS + "stylesheet.css", |
54 {BUG_ID + FS + "stylesheet.css", |
55 "body {" + NL + " font-family:Helvetica, Arial, sans-serif;" + NL + |
55 "body {" + NL + " background-color:#ffffff;" + NL + |
56 " color:#000000;" + NL + "}"}, |
56 " color:#353833;" + NL + |
|
57 " font-family:Arial, Helvetica, sans-serif;" + NL + |
|
58 " font-size:76%;" + NL + " margin:0;" + NL + "}"}, |
57 {BUG_ID + FS + "stylesheet.css", |
59 {BUG_ID + FS + "stylesheet.css", |
58 "ul {" + NL + " margin:10px 0 10px 20px;" + NL + |
60 "ul {" + NL + " list-style-type:disc;" + NL + "}"}, |
59 " list-style-type:disc;" + NL + "}"}, |
|
60 // Test whether a link to the stylesheet file is inserted properly |
61 // Test whether a link to the stylesheet file is inserted properly |
61 // in the class documentation. |
62 // in the class documentation. |
62 {BUG_ID + FS + "pkg" + FS + "A.html", |
63 {BUG_ID + FS + "pkg" + FS + "A.html", |
63 "<link rel=\"stylesheet\" type=\"text/css\" " + |
64 "<link rel=\"stylesheet\" type=\"text/css\" " + |
64 "href=\"../stylesheet.css\" title=\"Style\">"} |
65 "href=\"../stylesheet.css\" title=\"Style\">"} |