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

changeset 766
90af8d87741f
parent 554
9d9f26857129
child 798
4868a36f6fd8
equal deleted inserted replaced
758:bcbc86cc5b31 766:90af8d87741f
44 44
45 private static final String BUGID = "4638136"; 45 private static final String BUGID = "4638136";
46 private static final String BUGNAME = "AccessSkipNav"; 46 private static final String BUGNAME = "AccessSkipNav";
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 TMPDEST_DIR1 = "." + FS + "docs1" + FS; 50 private static final String TMPDEST_DIR1 = "." + FS + "docs1" + FS;
50 private static final String TMPDEST_DIR2 = "." + FS + "docs2" + FS; 51 private static final String TMPDEST_DIR2 = "." + FS + "docs2" + FS;
51 52
52 // Subtest number. Needed because runResultsOnHTML is run twice, 53 // Subtest number. Needed because runResultsOnHTML is run twice,
53 // and subtestNum should increment across subtest runs. 54 // and subtestNum should increment across subtest runs.
82 */ 83 */
83 private static final String[][] testArray = { 84 private static final String[][] testArray = {
84 85
85 // Testing only for the presence of the <a href> and <a name> 86 // Testing only for the presence of the <a href> and <a name>
86 87
87 // Top navbar <A HREF> 88 // Top navbar <a href>
88 { "<A HREF=\"#skip-navbar_top\" title=\"Skip navigation links\"></A>", 89 { "<a href=\"#skip-navbar_top\" title=\"Skip navigation links\"></a>",
89 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 90 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
90 91
91 // Top navbar <A NAME> 92 // Top navbar <a name>
92 { "<A NAME=\"skip-navbar_top\"></A>", 93 { "<a name=\"skip-navbar_top\">" + LS +
94 "<!-- -->" + LS + "</a>",
93 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 95 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
94 96
95 // Bottom navbar <A HREF> 97 // Bottom navbar <a href>
96 { "<A HREF=\"#skip-navbar_bottom\" title=\"Skip navigation links\"></A>", 98 { "<a href=\"#skip-navbar_bottom\" title=\"Skip navigation links\"></a>",
97 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 99 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
98 100
99 // Bottom navbar <A NAME> 101 // Bottom navbar <a name>
100 { "<A NAME=\"skip-navbar_bottom\"></A>", 102 { "<a name=\"skip-navbar_bottom\">" + LS +
103 "<!-- -->" + LS + "</a>",
101 TMPDEST_DIR1 + "p1" + FS + "C1.html" } 104 TMPDEST_DIR1 + "p1" + FS + "C1.html" }
102 }; 105 };
103 106
104 public static void runTestsOnHTML(String[][] testArray) { 107 public static void runTestsOnHTML(String[][] testArray) {
105 108

mercurial