21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4369014 4851991 |
26 * @bug 4369014 4851991 8164407 |
27 * @summary Determine if the docRoot inline tag works properly. |
27 * @summary Determine if the docRoot inline tag works properly. |
28 * If docRoot performs as documented, the test passes. |
28 * If docRoot performs as documented, the test passes. |
29 * Make sure that the docRoot tag works with the -bottom option. |
29 * Make sure that the docRoot tag works with the -bottom option. |
30 * @author jamieh |
30 * @author jamieh |
31 * @library ../lib |
31 * @library ../lib |
52 testSrc("TestDocRootTag.java"), "pkg"); |
52 testSrc("TestDocRootTag.java"), "pkg"); |
53 checkExit(Exit.OK); |
53 checkExit(Exit.OK); |
54 |
54 |
55 checkOutput("TestDocRootTag.html", true, |
55 checkOutput("TestDocRootTag.html", true, |
56 "<a href=\"" + uri + "/java/io/File.html?is-external=true\" " |
56 "<a href=\"" + uri + "/java/io/File.html?is-external=true\" " |
57 + "title=\"class or interface in java.io\"><code>File</code></a>", |
57 + "title=\"class or interface in java.io\" class=\"externalLink\"><code>File</code></a>", |
58 "<a href=\"./glossary.html\">glossary</a>", |
58 "<a href=\"./glossary.html\">glossary</a>", |
59 "<a href=\"" + uri + "/java/io/File.html?is-external=true\" " |
59 "<a href=\"" + uri + "/java/io/File.html?is-external=true\" " |
60 + "title=\"class or interface in java.io\"><code>Second File Link</code></a>", |
60 + "title=\"class or interface in java.io\" class=\"externalLink\"><code>Second File Link</code></a>", |
61 "The value of @docRoot is \"./\""); |
61 "The value of @docRoot is \"./\""); |
62 |
62 |
63 checkOutput("index-all.html", true, |
63 checkOutput("index-all.html", true, |
64 "My package page is <a href=\"./pkg/package-summary.html\">here</a>"); |
64 "My package page is <a href=\"./pkg/package-summary.html\">here</a>"); |
65 } |
65 } |