test/langtools/jdk/javadoc/doclet/DocRootSlash/DocRootSlash.java
changeset 54350 4f9772f4403d
parent 53097 2e82ca64b25d
equal deleted inserted replaced
54349:492af1f4b6d5 54350:4f9772f4403d
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2019, 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.
    55 
    55 
    56 
    56 
    57         javadoc("-d", "out",
    57         javadoc("-d", "out",
    58                 "-Xdoclint:none",
    58                 "-Xdoclint:none",
    59                 "-overview", (srcdir + "/overview.html"),
    59                 "-overview", (srcdir + "/overview.html"),
    60                 "--frames",
       
    61                 "-header", "<A HREF=\"{@docroot}/element-list\">{&#064;docroot}</A> <A HREF=\"{@docRoot}/help-doc.html\">{&#064;docRoot}</A>",
    60                 "-header", "<A HREF=\"{@docroot}/element-list\">{&#064;docroot}</A> <A HREF=\"{@docRoot}/help-doc.html\">{&#064;docRoot}</A>",
    62                 "-sourcepath", srcdir,
    61                 "-sourcepath", srcdir,
    63                 "p1", "p2");
    62                 "p1", "p2");
    64 
    63 
    65         checkFiles(
    64         checkFiles(
    66                 "p1/C1.html",
    65                 "p1/C1.html",
    67                 "p1/package-summary.html",
    66                 "p1/package-summary.html",
    68                 "overview-summary.html");
    67                 "index.html");
    69 
       
    70         // Bug 4633447: Special test for overview-frame.html
       
    71         // Find two strings in file "overview-frame.html"
       
    72         checkOutput("overview-frame.html", true,
       
    73                 "<A HREF=\"./element-list\">",
       
    74                 "<A HREF=\"./help-doc.html\">");
       
    75     }
    68     }
    76 
    69 
    77     void checkFiles(String... filenameArray) {
    70     void checkFiles(String... filenameArray) {
    78         int count = 0;
    71         int count = 0;
    79 
    72