test/langtools/jdk/javadoc/doclet/testTopOption/TestTopOption.java
changeset 54350 4f9772f4403d
parent 53097 2e82ca64b25d
child 59294 48b88b9c11eb
equal deleted inserted replaced
54349:492af1f4b6d5 54350:4f9772f4403d
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 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.
    45     public void test() {
    45     public void test() {
    46         javadoc("-overview", testSrc("overview.html"),
    46         javadoc("-overview", testSrc("overview.html"),
    47                 "-use",
    47                 "-use",
    48                 "-top", "TOP TEXT",
    48                 "-top", "TOP TEXT",
    49                 "-d", "out-1",
    49                 "-d", "out-1",
    50                 "--frames",
       
    51                 "-sourcepath", testSrc,
    50                 "-sourcepath", testSrc,
    52                 "pkg");
    51                 "pkg");
    53         checkExit(Exit.OK);
    52         checkExit(Exit.OK);
    54 
    53 
    55         checkTopText(
    54         checkTopText(
    57                 "pkg/class-use/AnnotationType.html",
    56                 "pkg/class-use/AnnotationType.html",
    58                 "pkg/Cl.html",
    57                 "pkg/Cl.html",
    59                 "pkg/class-use/Cl.html",
    58                 "pkg/class-use/Cl.html",
    60                 "pkg/package-summary.html",
    59                 "pkg/package-summary.html",
    61                 "pkg/package-use.html",
    60                 "pkg/package-use.html",
    62                 "overview-summary.html",
    61                 "index.html",
    63                 "overview-tree.html",
    62                 "overview-tree.html",
    64                 "constant-values.html",
    63                 "constant-values.html",
    65                 "help-doc.html");
    64                 "help-doc.html");
    66     }
    65     }
    67 
    66 
    69     public void testDocRootRewrite() {
    68     public void testDocRootRewrite() {
    70         javadoc("-overview", testSrc("overview.html"),
    69         javadoc("-overview", testSrc("overview.html"),
    71                 "-use",
    70                 "-use",
    72                 "-top", "\u0130{@docroot}TOP TEXT",
    71                 "-top", "\u0130{@docroot}TOP TEXT",
    73                 "-d", "out-2",
    72                 "-d", "out-2",
    74                 "--frames",
       
    75                 "-sourcepath", testSrc,
    73                 "-sourcepath", testSrc,
    76                 "pkg");
    74                 "pkg");
    77         checkExit(Exit.OK);
    75         checkExit(Exit.OK);
    78 
    76 
    79         checkTopText(
    77         checkTopText(
    81                 "pkg/class-use/AnnotationType.html",
    79                 "pkg/class-use/AnnotationType.html",
    82                 "pkg/Cl.html",
    80                 "pkg/Cl.html",
    83                 "pkg/class-use/Cl.html",
    81                 "pkg/class-use/Cl.html",
    84                 "pkg/package-summary.html",
    82                 "pkg/package-summary.html",
    85                 "pkg/package-use.html",
    83                 "pkg/package-use.html",
    86                 "overview-summary.html",
    84                 "index.html",
    87                 "overview-tree.html",
    85                 "overview-tree.html",
    88                 "constant-values.html",
    86                 "constant-values.html",
    89                 "help-doc.html");
    87                 "help-doc.html");
    90     }
    88     }
    91 
    89