test/langtools/jdk/javadoc/doclet/testTitleInHref/TestTitleInHref.java
changeset 53097 2e82ca64b25d
parent 51861 f7d40158eb2f
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4714257 8164407 8205593
    26  * @bug 4714257 8164407 8205593
    27  * @summary Test to make sure that the title attribute shows up in links.
    27  * @summary Test to make sure that the title attribute shows up in links.
    28  * @author jamieh
    28  * @author jamieh
    29  * @library ../lib
    29  * @library ../../lib
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @build JavadocTester
    31  * @build javadoc.tester.*
    32  * @run main TestTitleInHref
    32  * @run main TestTitleInHref
    33  */
    33  */
       
    34 
       
    35 import javadoc.tester.JavadocTester;
    34 
    36 
    35 public class TestTitleInHref extends JavadocTester {
    37 public class TestTitleInHref extends JavadocTester {
    36 
    38 
    37     public static void main(String... args) throws Exception {
    39     public static void main(String... args) throws Exception {
    38         TestTitleInHref tester = new TestTitleInHref();
    40         TestTitleInHref tester = new TestTitleInHref();
    39         tester.runTests();
    41         tester.runTests();
    40     }
    42     }
    41 
    43 
    42     @Test
    44     @Test
    43     void test() {
    45     public void test() {
    44         String uri = "http://java.sun.com/j2se/1.4/docs/api";
    46         String uri = "http://java.sun.com/j2se/1.4/docs/api";
    45         javadoc("-d", "out",
    47         javadoc("-d", "out",
    46                 "-source", "8",
    48                 "-source", "8",
    47                 "-sourcepath", testSrc,
    49                 "-sourcepath", testSrc,
    48                 "-linkoffline", uri, testSrc,
    50                 "-linkoffline", uri, testSrc,