langtools/test/com/sun/javadoc/testIndex/TestIndex.java
changeset 21478 fa4c7cda1b41
parent 14357 faf9cde2817b
child 23971 f5ff1f5a8dee
equal deleted inserted replaced
21477:02dc78554e0c 21478:fa4c7cda1b41
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4852280 4517115 4973608 4994589
    26  * @bug      4852280 4517115 4973608 4994589 8026567
    27  * @summary  Perform tests on index.html file.
    27  * @summary  Perform tests on index.html file.
    28  *           Also test that index-all.html has the appropriate output.
    28  *           Also test that index-all.html has the appropriate output.
    29  *           Test for unnamed package in index.
    29  *           Test for unnamed package in index.
    30  * @author   jamieh
    30  * @author   jamieh
    31  * @library  ../lib/
    31  * @library  ../lib/
    51             "<frame src=\"overview-summary.html\" name=\"classFrame\" title=\"" +
    51             "<frame src=\"overview-summary.html\" name=\"classFrame\" title=\"" +
    52             "Package, class and interface descriptions\" scrolling=\"yes\">"},
    52             "Package, class and interface descriptions\" scrolling=\"yes\">"},
    53 
    53 
    54         //Test index-all.html
    54         //Test index-all.html
    55         {BUG_ID + FS + "index-all.html",
    55         {BUG_ID + FS + "index-all.html",
    56             "<a href=\"pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">C</span></a>" +
    56             "<a href=\"pkg/C.html\" title=\"class in pkg\"><span class=\"typeNameLink\">C</span></a>" +
    57             " - Class in <a href=\"pkg/package-summary.html\">pkg</a>"},
    57             " - Class in <a href=\"pkg/package-summary.html\">pkg</a>"},
    58         {BUG_ID + FS + "index-all.html",
    58         {BUG_ID + FS + "index-all.html",
    59             "<a href=\"pkg/Interface.html\" title=\"interface in pkg\">" +
    59             "<a href=\"pkg/Interface.html\" title=\"interface in pkg\">" +
    60             "<span class=\"strong\">Interface</span></a> - Interface in " +
    60             "<span class=\"typeNameLink\">Interface</span></a> - Interface in " +
    61             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    61             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    62         {BUG_ID + FS + "index-all.html",
    62         {BUG_ID + FS + "index-all.html",
    63             "<a href=\"pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
    63             "<a href=\"pkg/AnnotationType.html\" title=\"annotation in pkg\">" +
    64             "<span class=\"strong\">AnnotationType</span></a> - Annotation Type in " +
    64             "<span class=\"typeNameLink\">AnnotationType</span></a> - Annotation Type in " +
    65             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    65             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    66         {BUG_ID + FS + "index-all.html",
    66         {BUG_ID + FS + "index-all.html",
    67             "<a href=\"pkg/Coin.html\" title=\"enum in pkg\">" +
    67             "<a href=\"pkg/Coin.html\" title=\"enum in pkg\">" +
    68             "<span class=\"strong\">Coin</span></a> - Enum in " +
    68             "<span class=\"typeNameLink\">Coin</span></a> - Enum in " +
    69             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    69             "<a href=\"pkg/package-summary.html\">pkg</a>"},
    70         {BUG_ID + FS + "index-all.html",
    70         {BUG_ID + FS + "index-all.html",
    71             "Class in <a href=\"package-summary.html\">&lt;Unnamed&gt;</a>"},
    71             "Class in <a href=\"package-summary.html\">&lt;Unnamed&gt;</a>"},
    72         {BUG_ID + FS + "index-all.html",
    72         {BUG_ID + FS + "index-all.html",
    73             "<dl>" + NL + "<dt><span class=\"strong\"><a href=\"pkg/C.html#Java\">" +
    73             "<dl>" + NL + "<dt><span class=\"memberNameLink\"><a href=\"pkg/C.html#Java\">" +
    74             "Java</a></span> - Static variable in class pkg.<a href=\"pkg/C.html\" " +
    74             "Java</a></span> - Static variable in class pkg.<a href=\"pkg/C.html\" " +
    75             "title=\"class in pkg\">C</a></dt>" + NL + "<dd>&nbsp;</dd>" + NL +
    75             "title=\"class in pkg\">C</a></dt>" + NL + "<dd>&nbsp;</dd>" + NL +
    76             "<dt><span class=\"strong\"><a href=\"pkg/C.html#JDK\">JDK</a></span> " +
    76             "<dt><span class=\"memberNameLink\"><a href=\"pkg/C.html#JDK\">JDK</a></span> " +
    77             "- Static variable in class pkg.<a href=\"pkg/C.html\" title=\"class in pkg\">" +
    77             "- Static variable in class pkg.<a href=\"pkg/C.html\" title=\"class in pkg\">" +
    78             "C</a></dt>" + NL + "<dd>&nbsp;</dd>" + NL + "</dl>"},
    78             "C</a></dt>" + NL + "<dd>&nbsp;</dd>" + NL + "</dl>"},
    79     };
    79     };
    80     private static final String[][] NEGATED_TEST = NO_TEST;
    80     private static final String[][] NEGATED_TEST = NO_TEST;
    81 
    81