langtools/test/com/sun/javadoc/testTopOption/TestTopOption.java
changeset 23971 f5ff1f5a8dee
parent 5520 86e4b9a9da40
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 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.
    37     //Test information.
    37     //Test information.
    38     private static final String BUG_ID = "6227616";
    38     private static final String BUG_ID = "6227616";
    39 
    39 
    40     //Javadoc arguments.
    40     //Javadoc arguments.
    41     private static final String[] ARGS = new String[] {
    41     private static final String[] ARGS = new String[] {
    42         "-overview", "SRC_DIR + FS + overview.html", "-use", "-top", "TOP TEXT", "-d", BUG_ID, "-sourcepath",
    42         "-overview", "SRC_DIR + '/' + overview.html", "-use", "-top",
       
    43         "TOP TEXT", "-d", BUG_ID, "-sourcepath",
    43         SRC_DIR, "pkg"
    44         SRC_DIR, "pkg"
    44     };
    45     };
    45 
    46 
    46     //Input for string search tests.
    47     //Input for string search tests.
    47     private static final String[][] TEST = {
    48     private static final String[][] TEST = {
    48         {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
    49         {BUG_ID + "/pkg/AnnotationType.html",
    49             "TOP TEXT"},
    50             "TOP TEXT"},
    50         {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
    51         {BUG_ID + "/pkg/class-use/AnnotationType.html",
    51             "TOP TEXT"},
    52             "TOP TEXT"},
    52 
    53 
    53         {BUG_ID + FS + "pkg" + FS + "Cl.html",
    54         {BUG_ID + "/pkg/Cl.html",
    54             "TOP TEXT"},
    55             "TOP TEXT"},
    55         {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "Cl.html",
    56         {BUG_ID + "/pkg/class-use/Cl.html",
    56             "TOP TEXT"},
    57             "TOP TEXT"},
    57 
    58 
    58         {BUG_ID + FS + "pkg" + FS + "package-summary.html",
    59         {BUG_ID + "/pkg/package-summary.html",
    59             "TOP TEXT"},
    60             "TOP TEXT"},
    60         {BUG_ID + FS + "pkg" + FS + "package-use.html",
    61         {BUG_ID + "/pkg/package-use.html",
    61            "TOP TEXT"},
    62            "TOP TEXT"},
    62 
    63 
    63         {BUG_ID + FS + "overview-summary.html",
    64         {BUG_ID + "/overview-summary.html",
    64             "TOP TEXT"},
    65             "TOP TEXT"},
    65         {BUG_ID + FS + "overview-tree.html",
    66         {BUG_ID + "/overview-tree.html",
    66             "TOP TEXT"},
    67             "TOP TEXT"},
    67         {BUG_ID + FS + "constant-values.html",
    68         {BUG_ID + "/constant-values.html",
    68             "TOP TEXT"},
    69             "TOP TEXT"},
    69         {BUG_ID + FS + "help-doc.html",
    70         {BUG_ID + "/help-doc.html",
    70             "TOP TEXT"},
    71             "TOP TEXT"},
    71     };
    72     };
    72     private static final String[][] NEGATED_TEST = NO_TEST;
    73     private static final String[][] NEGATED_TEST = NO_TEST;
    73 
    74 
    74     /**
    75     /**