langtools/test/com/sun/javadoc/testAnchorNames/TestAnchorNames.java
author pchistyakov
Mon, 12 Jan 2015 18:58:49 +0300
changeset 28501 c9c359a66a15
parent 27991 8f4b68523da3
child 29957 7740f9657f56
permissions -rw-r--r--
8059551: JEP-JDK-8043304: Test task: stress tests Reviewed-by: drchase, kvn, iignatyev
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     1
/*
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21717
diff changeset
     2
 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     4
 *
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     8
 *
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    13
 * accompanied this code).
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    14
 *
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    18
 *
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    21
 * questions.
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    22
 */
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    23
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    24
/*
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    25
 * @test
21717
11ba59c9bbb5 8025524: javadoc does not correctly locate constructors for nested classes
bpatel
parents: 21008
diff changeset
    26
 * @bug 8025633 8025524
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    27
 * @summary Test for valid name attribute in HTML anchors.
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    28
 * @author Bhavesh Patel
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    29
 * @library ../lib
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    30
 * @build JavadocTester
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    31
 * @run main TestAnchorNames
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    32
 */
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    33
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    34
public class TestAnchorNames extends JavadocTester {
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    35
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    36
    private static final String[] ARGS = new String[] {
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    37
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    38
    };
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    39
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    40
    public static void main(String[] args) throws Exception {
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
    41
        TestAnchorNames tester = new TestAnchorNames();
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
    }
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    46
    void test() {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
        javadoc("-d", "out",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
                "-sourcepath", testSrc,
27991
8f4b68523da3 8061549: Disallow _ as a one-character identifier
jlahoda
parents: 24399
diff changeset
    49
                "-source", "8", //so that '_' can be used as an identifier
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
                "-use",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
                "pkg1");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    52
        checkExit(Exit.OK);
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    53
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    54
        // Test some section markers and links to these markers
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    55
        checkOutput("pkg1/RegClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    56
                "<a name=\"skip.navbar.top\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    57
                "<a href=\"#skip.navbar.top\" title=\"Skip navigation links\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    58
                "<a name=\"nested.class.summary\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    59
                "<a href=\"#nested.class.summary\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    60
                "<a name=\"method.summary\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    61
                "<a href=\"#method.summary\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    62
                "<a name=\"field.detail\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    63
                "<a href=\"#field.detail\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    64
                "<a name=\"constructor.detail\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    65
                "<a href=\"#constructor.detail\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    66
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    67
        // Test some members and link to these members
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    68
        checkOutput("pkg1/RegClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    69
                //The marker for this appears in the serialized-form.html which we will
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    70
                //test below
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    71
                "<a href=\"../serialized-form.html#pkg1.RegClass\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    72
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    73
        // Test some fields
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    74
        checkOutput("pkg1/RegClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    75
                "<a name=\"Z:Z_\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    76
                "<a href=\"../pkg1/RegClass.html#Z:Z_\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    77
                "<a name=\"Z:Z_:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    78
                "<a href=\"../pkg1/RegClass.html#Z:Z_:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    79
                "<a name=\"Z:Z:D_\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    80
                "<a href=\"../pkg1/RegClass.html#Z:Z:D_\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    81
                "<a name=\"Z:Z:Dfield\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    82
                "<a href=\"../pkg1/RegClass.html#Z:Z:Dfield\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    83
                "<a name=\"fieldInCla:D:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    84
                "<a href=\"../pkg1/RegClass.html#fieldInCla:D:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    85
                "<a name=\"S_:D:D:D:D:DINT\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    86
                "<a href=\"../pkg1/RegClass.html#S_:D:D:D:D:DINT\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    87
                "<a name=\"method:D:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    88
                "<a href=\"../pkg1/RegClass.html#method:D:D\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    89
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    90
        checkOutput("pkg1/DeprMemClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    91
                "<a name=\"Z:Z_field_In_Class\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    92
                "<a href=\"../pkg1/DeprMemClass.html#Z:Z_field_In_Class\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    93
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    94
        // Test constructor
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    95
        checkOutput("pkg1/RegClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    96
                "<a name=\"RegClass-java.lang.String-int-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    97
                "<a href=\"../pkg1/RegClass.html#RegClass-java.lang.String-int-\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    98
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    99
        // Test some methods
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   100
        checkOutput("pkg1/RegClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   101
                "<a name=\"Z:Z_methodInClass-java.lang.String-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   102
                "<a href=\"../pkg1/RegClass.html#Z:Z_methodInClass-java.lang.String-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   103
                "<a name=\"method--\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   104
                "<a href=\"../pkg1/RegClass.html#method--\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   105
                "<a name=\"foo-java.util.Map-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   106
                "<a href=\"../pkg1/RegClass.html#foo-java.util.Map-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   107
                "<a name=\"methodInCla:Ds-java.lang.String:A-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   108
                "<a href=\"../pkg1/RegClass.html#methodInCla:Ds-java.lang.String:A-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   109
                "<a name=\"Z:Z_methodInClas:D-java.lang.String-int-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   110
                "<a href=\"../pkg1/RegClass.html#Z:Z_methodInClas:D-java.lang.String-int-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   111
                "<a name=\"methodD-pkg1.RegClass.:DA-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   112
                "<a href=\"../pkg1/RegClass.html#methodD-pkg1.RegClass.:DA-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   113
                "<a name=\"methodD-pkg1.RegClass.D:A-\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   114
                "<a href=\"../pkg1/RegClass.html#methodD-pkg1.RegClass.D:A-\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   115
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   116
        checkOutput("pkg1/DeprMemClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   117
                "<a name=\"Z:Z:Dmethod_In_Class--\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   118
                "<a href=\"../pkg1/DeprMemClass.html#Z:Z:Dmethod_In_Class--\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   119
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   120
        // Test enum
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   121
        checkOutput("pkg1/RegClass.Te$t_Enum.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   122
                "<a name=\"Z:Z:DFLD2\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   123
                "<a href=\"../pkg1/RegClass.Te$t_Enum.html#Z:Z:DFLD2\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   124
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   125
        // Test nested class
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   126
        checkOutput("pkg1/RegClass._NestedClas$.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   127
                "<a name=\"Z:Z_NestedClas:D--\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   128
                "<a href=\"../pkg1/RegClass._NestedClas$.html#Z:Z_NestedClas:D--\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   129
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   130
        // Test class use page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   131
        checkOutput("pkg1/class-use/DeprMemClass.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   132
                "<a href=\"../../pkg1/RegClass.html#d____mc\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   133
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   134
        // Test deprecated list page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   135
        checkOutput("deprecated-list.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   136
                "<a href=\"pkg1/DeprMemClass.html#Z:Z_field_In_Class\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   137
                "<a href=\"pkg1/DeprMemClass.html#Z:Z:Dmethod_In_Class--\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   138
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   139
        // Test constant values page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   140
        checkOutput("constant-values.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   141
                "<a href=\"pkg1/RegClass.html#S_:D:D:D:D:DINT\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   142
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   143
        // Test serialized form page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   144
        checkOutput("serialized-form.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   145
                //This is the marker for the link that appears in the pkg1.RegClass.html page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   146
                "<a name=\"pkg1.RegClass\">");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   147
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   148
        // Test member name index page
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   149
        checkOutput("index-all.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   150
                "<a name=\"I:Z:Z:D\">",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   151
                "<a href=\"#I:Z:Z:D\">$",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   152
                "<a href=\"#I:Z:Z_\">_");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   153
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   154
        // The marker name conversion should only affect HTML anchors. It should not
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   155
        // affect the lables.
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   156
        checkOutput("pkg1/RegClass.html", false,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   157
                " Z:Z_",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   158
                " Z:Z:Dfield",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   159
                " Z:Z_field_In_Class",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
   160
                " S_:D:D:D:D:DINT");
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
   161
    }
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
diff changeset
   162
}