langtools/test/com/sun/javadoc/testHeadings/TestHeadings.java
changeset 23971 f5ff1f5a8dee
parent 7681 1f0819a3341f
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2014, 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.
    44     };
    44     };
    45 
    45 
    46     //Input for string search tests.
    46     //Input for string search tests.
    47     private static final String[][] TEST = {
    47     private static final String[][] TEST = {
    48         //Package summary
    48         //Package summary
    49         {BUG_ID + FS + "pkg1" + FS + "package-summary.html",
    49         {BUG_ID + "/pkg1/package-summary.html",
    50             "<th class=\"colFirst\" scope=\"col\">" +
    50             "<th class=\"colFirst\" scope=\"col\">" +
    51             "Class</th>" + NL + "<th class=\"colLast\" scope=\"col\"" +
    51             "Class</th>\n" +
       
    52             "<th class=\"colLast\" scope=\"col\"" +
    52             ">Description</th>"
    53             ">Description</th>"
    53         },
    54         },
    54 
    55 
    55         // Class documentation
    56         // Class documentation
    56         {BUG_ID + FS + "pkg1" + FS + "C1.html",
    57         {BUG_ID + "/pkg1/C1.html",
    57             "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL +
    58             "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
    58             "<th class=\"colLast\" scope=\"col\">Field and Description</th>"
    59             "<th class=\"colLast\" scope=\"col\">Field and Description</th>"
    59         },
    60         },
    60         {BUG_ID + FS + "pkg1" + FS + "C1.html",
    61         {BUG_ID + "/pkg1/C1.html",
    61             "<h3>Methods inherited from class&nbsp;java.lang.Object</h3>"
    62             "<h3>Methods inherited from class&nbsp;java.lang.Object</h3>"
    62         },
    63         },
    63 
    64 
    64         // Class use documentation
    65         // Class use documentation
    65         {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html",
    66         {BUG_ID + "/pkg1/class-use/C1.html",
    66             "<th class=\"colFirst\" scope=\"col\">Package</th>" + NL +
    67             "<th class=\"colFirst\" scope=\"col\">Package</th>\n" +
    67             "<th class=\"colLast\" scope=\"col\">Description</th>"
    68             "<th class=\"colLast\" scope=\"col\">Description</th>"
    68         },
    69         },
    69         {BUG_ID + FS + "pkg1" + FS + "class-use" + FS + "C1.html",
    70         {BUG_ID + "/pkg1/class-use/C1.html",
    70             "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL +
    71             "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>\n" +
    71             "<th class=\"colLast\" scope=\"col\">Field and Description</th>"
    72             "<th class=\"colLast\" scope=\"col\">Field and Description</th>"
    72         },
    73         },
    73 
    74 
    74         // Deprecated
    75         // Deprecated
    75         {BUG_ID + FS + "deprecated-list.html",
    76         {BUG_ID + "/deprecated-list.html",
    76             "<th class=\"colOne\" scope=\"col\">Method and Description</th>"
    77             "<th class=\"colOne\" scope=\"col\">Method and Description</th>"
    77         },
    78         },
    78 
    79 
    79         // Constant values
    80         // Constant values
    80         {BUG_ID + FS + "constant-values.html",
    81         {BUG_ID + "/constant-values.html",
    81             "<th class=\"colFirst\" scope=\"col\">" +
    82             "<th class=\"colFirst\" scope=\"col\">" +
    82             "Modifier and Type</th>" + NL + "<th scope=\"col\">Constant Field</th>" + NL +
    83             "Modifier and Type</th>\n" +
       
    84             "<th scope=\"col\">Constant Field</th>\n" +
    83             "<th class=\"colLast\" scope=\"col\">Value</th>"
    85             "<th class=\"colLast\" scope=\"col\">Value</th>"
    84         },
    86         },
    85 
    87 
    86         // Serialized Form
    88         // Serialized Form
    87         {BUG_ID + FS + "serialized-form.html",
    89         {BUG_ID + "/serialized-form.html",
    88             "<h2 title=\"Package\">Package&nbsp;pkg1</h2>"
    90             "<h2 title=\"Package\">Package&nbsp;pkg1</h2>"
    89         },
    91         },
    90         {BUG_ID + FS + "serialized-form.html",
    92         {BUG_ID + "/serialized-form.html",
    91             "<h3>Class <a href=\"pkg1/C1.html\" title=\"class in pkg1\">" +
    93             "<h3>Class <a href=\"pkg1/C1.html\" title=\"class in pkg1\">" +
    92             "pkg1.C1</a> extends java.lang.Object implements Serializable</h3>"
    94             "pkg1.C1</a> extends java.lang.Object implements Serializable</h3>"
    93         },
    95         },
    94         {BUG_ID + FS + "serialized-form.html",
    96         {BUG_ID + "/serialized-form.html",
    95             "<h3>Serialized Fields</h3>"
    97             "<h3>Serialized Fields</h3>"
    96         },
    98         },
    97 
    99 
    98         // Overview Frame
   100         // Overview Frame
    99         {BUG_ID + FS + "overview-frame.html",
   101         {BUG_ID + "/overview-frame.html",
   100             "<h1 title=\"Test Files\" class=\"bar\">Test Files</h1>"
   102             "<h1 title=\"Test Files\" class=\"bar\">Test Files</h1>"
   101         },
   103         },
   102         {BUG_ID + FS + "overview-frame.html",
   104         {BUG_ID + "/overview-frame.html",
   103             "<title>Overview List</title>"
   105             "<title>Overview List</title>"
   104         },
   106         },
   105 
   107 
   106         // Overview Summary
   108         // Overview Summary
   107         {BUG_ID + FS + "overview-summary.html",
   109         {BUG_ID + "/overview-summary.html",
   108             "<title>Overview</title>"
   110             "<title>Overview</title>"
   109         },
   111         },
   110 
   112 
   111     };
   113     };
   112     private static final String[][] NEGATED_TEST = NO_TEST;
   114     private static final String[][] NEGATED_TEST = NO_TEST;