test/langtools/jdk/javadoc/doclet/testRelativeLinks/TestRelativeLinks.java
changeset 54350 4f9772f4403d
parent 53562 0d9dee001667
equal deleted inserted replaced
54349:492af1f4b6d5 54350:4f9772f4403d
    48 
    48 
    49     @Test
    49     @Test
    50     public void test() {
    50     public void test() {
    51         javadoc("-d", "out",
    51         javadoc("-d", "out",
    52                 "-use",
    52                 "-use",
    53                 "--frames",
       
    54                 "-sourcepath", testSrc,
    53                 "-sourcepath", testSrc,
    55                 "pkg", "pkg2");
    54                 "pkg", "pkg2");
    56         checkExit(Exit.ERROR);
    55         checkExit(Exit.ERROR);
    57 
    56 
    58         checkOutput(Output.OUT, true,
    57         checkOutput(Output.OUT, true,
    96             "<a href=\"../../pkg/relative-method-link.html\">relative method link</a>",
    95             "<a href=\"../../pkg/relative-method-link.html\">relative method link</a>",
    97             "<a href=\"../../pkg/relative-package-link.html\">relative package link</a>",
    96             "<a href=\"../../pkg/relative-package-link.html\">relative package link</a>",
    98             " <a href=\"../../pkg/relative-multi-line-link.html\">relative-multi-line-link</a>.");
    97             " <a href=\"../../pkg/relative-multi-line-link.html\">relative-multi-line-link</a>.");
    99 
    98 
   100         // PACKAGE OVERVIEW
    99         // PACKAGE OVERVIEW
   101         checkOutput("overview-summary.html", true,
   100         checkOutput("index.html", true,
   102             "<a href=\"./pkg/relative-package-link.html\">relative package link</a>");
   101             "<a href=\"./pkg/relative-package-link.html\">relative package link</a>");
   103     }
   102     }
   104 
   103 
   105     private void touch(String file) {
   104     private void touch(String file) {
   106         File f = new File(outputDir, file);
   105         File f = new File(outputDir, file);