equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4720957 5020118 8026567 8038976 8184969 8164407 8182765 |
26 * @bug 4720957 5020118 8026567 8038976 8184969 8164407 8182765 8205593 |
27 * @summary Test to make sure that -link and -linkoffline link to |
27 * @summary Test to make sure that -link and -linkoffline link to |
28 * right files, and URLs with and without trailing slash are accepted. |
28 * right files, and URLs with and without trailing slash are accepted. |
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 |
59 |
59 |
60 // Generate the documentation using -linkoffline and a URL as the first parameter. |
60 // Generate the documentation using -linkoffline and a URL as the first parameter. |
61 String out1 = "out1"; |
61 String out1 = "out1"; |
62 String url = "http://acme.com/jdk/"; |
62 String url = "http://acme.com/jdk/"; |
63 javadoc("-d", out1, |
63 javadoc("-d", out1, |
|
64 "-source", "8", |
64 "-classpath", mylib, |
65 "-classpath", mylib, |
65 "-sourcepath", testSrc, |
66 "-sourcepath", testSrc, |
66 "-linkoffline", url, testSrc + "/jdk", |
67 "-linkoffline", url, testSrc + "/jdk", |
67 "-package", |
68 "-package", |
68 "pkg", "mylib.lang"); |
69 "pkg", "mylib.lang"); |
111 + "title=\"class or interface in java.lang\" class=\"externalLink\">Object</a></pre>" |
112 + "title=\"class or interface in java.lang\" class=\"externalLink\">Object</a></pre>" |
112 ); |
113 ); |
113 |
114 |
114 String out1_html4 = "out1-html4"; |
115 String out1_html4 = "out1-html4"; |
115 javadoc("-d", out1_html4, |
116 javadoc("-d", out1_html4, |
|
117 "-source", "8", |
116 "-html4", |
118 "-html4", |
117 "-classpath", mylib, |
119 "-classpath", mylib, |
118 "-sourcepath", testSrc, |
120 "-sourcepath", testSrc, |
119 "-linkoffline", url, testSrc + "/jdk", |
121 "-linkoffline", url, testSrc + "/jdk", |
120 "-package", |
122 "-package", |