TestHtmlStrongTag.java revision 3233:b5d08bc0d224
14Srgrimes/* 24Srgrimes * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. 34Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 44Srgrimes * 54Srgrimes * This code is free software; you can redistribute it and/or modify it 64Srgrimes * under the terms of the GNU General Public License version 2 only, as 74Srgrimes * published by the Free Software Foundation. 84Srgrimes * 94Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 104Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 114Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 124Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 134Srgrimes * accompanied this code). 144Srgrimes * 154Srgrimes * You should have received a copy of the GNU General Public License version 164Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 174Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 184Srgrimes * 194Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 204Srgrimes * or visit www.oracle.com if you need additional information or have any 214Srgrimes * questions. 224Srgrimes */ 234Srgrimes 244Srgrimes/* 254Srgrimes * @test 264Srgrimes * @bug 6786028 8026567 274Srgrimes * @summary This test verifies the use of <strong> HTML tag instead of <B> by Javadoc std doclet. 284Srgrimes * @author Bhavesh Patel 294Srgrimes * @library ../lib 304Srgrimes * @modules jdk.javadoc 314Srgrimes * @build JavadocTester 324Srgrimes * @run main TestHtmlStrongTag 334Srgrimes */ 344Srgrimes 354Srgrimespublic class TestHtmlStrongTag extends JavadocTester { 36620Srgrimes 3750477Speter public static void main(String... args) throws Exception { 384Srgrimes TestHtmlStrongTag tester = new TestHtmlStrongTag(); 394Srgrimes tester.runTests(); 404Srgrimes } 414Srgrimes 424Srgrimes @Test 438876Srgrimes void test1() { 444Srgrimes javadoc("-d", "out-1", 454Srgrimes "-sourcepath", testSrc, 464Srgrimes "pkg1"); 474Srgrimes checkExit(Exit.OK); 4832358Seivind 4932726Seivind checkOutput("pkg1/C1.html", true, 5025460Sjoerg "<span class=\"seeLabel\">See Also:</span>"); 5171785Speter 5253888Sdillon checkOutput("pkg1/C1.html", false, 5337272Sjmg "<STRONG>Method Summary</STRONG>", 5445720Speter "<B>"); 5546806Sphk 5625164Speter checkOutput("pkg1/package-summary.html", false, 572056Swollman "<STRONG>Class Summary</STRONG>"); 582056Swollman } 5945720Speter 602056Swollman @Test 6131328Speter void test2() { 6236809Sbde javadoc("-d", "out-2", 6367365Sjhb "-sourcepath", testSrc, 642056Swollman "pkg2"); 652056Swollman checkExit(Exit.OK); 6636809Sbde 6712604Sbde checkOutput("pkg2/C2.html", true, 6849558Sphk "<B>Comments:</B>"); 694Srgrimes 7020641Sbde checkOutput("pkg2/C2.html", false, 717090Sbde "<STRONG>Method Summary</STRONG>"); 7227288Sfsmp } 7325164Speter} 7450197Speter