test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java

changeset 766
90af8d87741f
parent 554
9d9f26857129
child 798
4868a36f6fd8
     1.1 --- a/test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java	Tue Nov 30 09:38:48 2010 -0800
     1.2 +++ b/test/com/sun/javadoc/AccessSkipNav/AccessSkipNav.java	Wed Dec 01 11:02:38 2010 -0800
     1.3 @@ -46,6 +46,7 @@
     1.4      private static final String BUGNAME = "AccessSkipNav";
     1.5      private static final String FS = System.getProperty("file.separator");
     1.6      private static final String PS = System.getProperty("path.separator");
     1.7 +    private static final String LS = System.getProperty("line.separator");
     1.8      private static final String TMPDEST_DIR1 = "." + FS + "docs1" + FS;
     1.9      private static final String TMPDEST_DIR2 = "." + FS + "docs2" + FS;
    1.10  
    1.11 @@ -84,20 +85,22 @@
    1.12  
    1.13              // Testing only for the presence of the <a href> and <a name>
    1.14  
    1.15 -            // Top navbar <A HREF>
    1.16 -            { "<A HREF=\"#skip-navbar_top\" title=\"Skip navigation links\"></A>",
    1.17 +            // Top navbar <a href>
    1.18 +            { "<a href=\"#skip-navbar_top\" title=\"Skip navigation links\"></a>",
    1.19                       TMPDEST_DIR1 + "p1" + FS + "C1.html" },
    1.20  
    1.21 -            // Top navbar <A NAME>
    1.22 -            { "<A NAME=\"skip-navbar_top\"></A>",
    1.23 +            // Top navbar <a name>
    1.24 +            { "<a name=\"skip-navbar_top\">" + LS +
    1.25 +                      "<!--   -->" + LS + "</a>",
    1.26                       TMPDEST_DIR1 + "p1" + FS + "C1.html" },
    1.27  
    1.28 -            // Bottom navbar <A HREF>
    1.29 -            { "<A HREF=\"#skip-navbar_bottom\" title=\"Skip navigation links\"></A>",
    1.30 +            // Bottom navbar <a href>
    1.31 +            { "<a href=\"#skip-navbar_bottom\" title=\"Skip navigation links\"></a>",
    1.32                       TMPDEST_DIR1 + "p1" + FS + "C1.html" },
    1.33  
    1.34 -            // Bottom navbar <A NAME>
    1.35 -            { "<A NAME=\"skip-navbar_bottom\"></A>",
    1.36 +            // Bottom navbar <a name>
    1.37 +            { "<a name=\"skip-navbar_bottom\">" + LS +
    1.38 +                      "<!--   -->" + LS + "</a>",
    1.39                       TMPDEST_DIR1 + "p1" + FS + "C1.html" }
    1.40          };
    1.41  

mercurial