test/langtools/jdk/javadoc/doclet/testHref/TestHref.java
changeset 48654 36f58bd6269f
parent 47216 71c04702a3d5
child 49139 771616d26ca1
equal deleted inserted replaced
48653:89111a0e6355 48654:36f58bd6269f
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
    50 
    50 
    51         checkOutput("pkg/C1.html", true,
    51         checkOutput("pkg/C1.html", true,
    52                 //External link.
    52                 //External link.
    53                 "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\"",
    53                 "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\"",
    54                 //Member summary table link.
    54                 //Member summary table link.
    55                 "href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\"",
    55                 "href=\"#method-int-int-java.util.ArrayList-\"",
    56                 //Anchor test.
    56                 //Anchor test.
    57                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
    57                 "<a name=\"method-int-int-java.util.ArrayList-\">\n"
    58                 + "<!--   -->\n"
    58                 + "<!--   -->\n"
    59                 + "</a>",
    59                 + "</a>",
    60                 //Backward compatibility anchor test."pkg/C1.html",
    60                 //Backward compatibility anchor test."pkg/C1.html",
    62                 + "<!--   -->\n"
    62                 + "<!--   -->\n"
    63                 + "</a>");
    63                 + "</a>");
    64 
    64 
    65         checkOutput("pkg/C2.html", true,
    65         checkOutput("pkg/C2.html", true,
    66                 //{@link} test.
    66                 //{@link} test.
    67                 "Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">",
    67                 "Link: <a href=\"C1.html#method-int-int-java.util.ArrayList-\">",
    68                 //@see test.
    68                 //@see test.
    69                 "See Also:</span></dt>\n"
    69                 "See Also:</span></dt>\n"
    70                 + "<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">"
    70                 + "<dd><a href=\"C1.html#method-int-int-java.util.ArrayList-\">"
    71         );
    71         );
    72 
    72 
    73         checkOutput("pkg/C4.html", true,
    73         checkOutput("pkg/C4.html", true,
    74                 //Header does not link to the page itself.
    74                 //Header does not link to the page itself.
    75                 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>",
    75                 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>",