Mon, 23 Jan 2017 17:03:12 -0800
Merge
bpatel@182 | 1 | /* |
bpatel@2147 | 2 | * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
bpatel@182 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bpatel@182 | 4 | * |
bpatel@182 | 5 | * This code is free software; you can redistribute it and/or modify it |
bpatel@182 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@554 | 7 | * published by the Free Software Foundation. Oracle designates this |
bpatel@182 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@554 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
bpatel@182 | 10 | * |
bpatel@182 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
bpatel@182 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bpatel@182 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bpatel@182 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
bpatel@182 | 15 | * accompanied this code). |
bpatel@182 | 16 | * |
bpatel@182 | 17 | * You should have received a copy of the GNU General Public License version |
bpatel@182 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
bpatel@182 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bpatel@182 | 20 | * |
ohair@554 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 23 | * questions. |
bpatel@182 | 24 | */ |
bpatel@182 | 25 | |
bpatel@182 | 26 | /* |
bpatel@182 | 27 | * @test |
bpatel@2147 | 28 | * @bug 6786028 8026567 |
bpatel@182 | 29 | * @summary This test verifys the use of <strong> HTML tag instead of <B> by Javadoc std doclet. |
bpatel@182 | 30 | * @author Bhavesh Patel |
bpatel@182 | 31 | * @library ../lib/ |
bpatel@182 | 32 | * @build JavadocTester |
bpatel@182 | 33 | * @build TestHtmlStrongTag |
bpatel@182 | 34 | * @run main TestHtmlStrongTag |
bpatel@182 | 35 | */ |
bpatel@182 | 36 | |
bpatel@182 | 37 | public class TestHtmlStrongTag extends JavadocTester { |
bpatel@182 | 38 | |
bpatel@182 | 39 | private static final String BUG_ID = "6786028"; |
bpatel@182 | 40 | private static final String[][] TEST1 = { |
bpatel@2147 | 41 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<span class=\"seeLabel\">See Also:</span>"}}; |
bpatel@243 | 42 | private static final String[][] NEGATED_TEST1 = { |
bpatel@182 | 43 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<STRONG>Method Summary</STRONG>"}, |
bpatel@243 | 44 | {BUG_ID + FS + "pkg1" + FS + "C1.html", "<B>"}, |
bpatel@182 | 45 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<STRONG>Class Summary</STRONG>"}}; |
bpatel@182 | 46 | private static final String[][] TEST2 = { |
bpatel@243 | 47 | {BUG_ID + FS + "pkg2" + FS + "C2.html", "<B>Comments:</B>"}}; |
bpatel@243 | 48 | private static final String[][] NEGATED_TEST2 = { |
bpatel@182 | 49 | {BUG_ID + FS + "pkg2" + FS + "C2.html", "<STRONG>Method Summary</STRONG>"}, |
bpatel@182 | 50 | {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<STRONG>Class Summary</STRONG>"}}; |
bpatel@182 | 51 | |
bpatel@182 | 52 | private static final String[] ARGS1 = |
bpatel@182 | 53 | new String[] { |
bpatel@182 | 54 | "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@182 | 55 | private static final String[] ARGS2 = |
bpatel@182 | 56 | new String[] { |
bpatel@182 | 57 | "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg2"}; |
bpatel@182 | 58 | |
bpatel@182 | 59 | /** |
bpatel@182 | 60 | * The entry point of the test. |
bpatel@182 | 61 | * @param args the array of command line arguments. |
bpatel@182 | 62 | */ |
bpatel@182 | 63 | public static void main(String[] args) { |
bpatel@182 | 64 | TestHtmlStrongTag tester = new TestHtmlStrongTag(); |
bpatel@182 | 65 | run(tester, ARGS1, TEST1, NEGATED_TEST1); |
bpatel@243 | 66 | run(tester, ARGS2, TEST2, NEGATED_TEST2); |
bpatel@182 | 67 | tester.printSummary(); |
bpatel@182 | 68 | } |
bpatel@182 | 69 | |
bpatel@182 | 70 | /** |
bpatel@182 | 71 | * {@inheritDoc} |
bpatel@182 | 72 | */ |
bpatel@182 | 73 | public String getBugId() { |
bpatel@182 | 74 | return BUG_ID; |
bpatel@182 | 75 | } |
bpatel@182 | 76 | |
bpatel@182 | 77 | /** |
bpatel@182 | 78 | * {@inheritDoc} |
bpatel@182 | 79 | */ |
bpatel@182 | 80 | public String getBugName() { |
bpatel@182 | 81 | return getClass().getName(); |
bpatel@182 | 82 | } |
bpatel@182 | 83 | } |