langtools/test/com/sun/javadoc/AccessH1/AccessH1.java
changeset 9894 a0ec54adb051
parent 7681 1f0819a3341f
child 22447 364fe5d83775
equal deleted inserted replaced
9882:a89465baa9fd 9894:a0ec54adb051
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2011, 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 4636667
    26  * @bug 4636667 7052425
    27  * @summary  Use <H1, <H2>, and <H3> in proper sequence for accessibility
    27  * @summary  Use <H1, <H2>, and <H3> in proper sequence for accessibility
    28  * @author dkramer
    28  * @author dkramer
    29  * @run main AccessH1
    29  * @run main AccessH1
    30  */
    30  */
    31 
    31 
    40  * It reads each file, complete with newlines, into a string to easily
    40  * It reads each file, complete with newlines, into a string to easily
    41  * find strings that contain newlines.
    41  * find strings that contain newlines.
    42  */
    42  */
    43 public class AccessH1 {
    43 public class AccessH1 {
    44 
    44 
    45     private static final String BUGID = "4636667";
    45     private static final String BUGID = "4636667-7052425";
    46     private static final String BUGNAME = "AccessH1";
    46     private static final String BUGNAME = "AccessH1";
    47     private static final String FS = System.getProperty("file.separator");
    47     private static final String FS = System.getProperty("file.separator");
    48     private static final String PS = System.getProperty("path.separator");
    48     private static final String PS = System.getProperty("path.separator");
    49     private static final String LS = System.getProperty("line.separator");
    49     private static final String LS = System.getProperty("line.separator");
    50     private static final String TMPDEST_DIR1 = "." + FS + "docs1" + FS;
    50     private static final String TMPDEST_DIR1 = "." + FS + "docs1" + FS;
    83      * NOTE: The standard doclet uses the same separator "\n" for all OS's
    83      * NOTE: The standard doclet uses the same separator "\n" for all OS's
    84      */
    84      */
    85     private static final String[][] testArray = {
    85     private static final String[][] testArray = {
    86         // Test the style sheet
    86         // Test the style sheet
    87         {
    87         {
    88             ".header h1.title {" + LS + "    font-size:1.4em;" + LS +
    88             "h1 {" + LS + "    font-size:1.8em;" + LS +
    89             "    text-align:center;" + LS + "    margin:0;" + LS +
       
    90             "}",
    89             "}",
    91             TMPDEST_DIR1 + "stylesheet.css"
    90             TMPDEST_DIR1 + "stylesheet.css"
    92         },
    91         },
    93         // Test the doc title in the overview page
    92         // Test the doc title in the overview page
    94         {
    93         {