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

changeset 2101
933ba3f81a87
parent 1995
dd64288f5659
child 2525
2eb010b6cb22
equal deleted inserted replaced
2100:1e7ad879f15e 2101:933ba3f81a87
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @bug 4638136 7198273 26 * @bug 4638136 7198273 8025633
27 * @summary Add ability to skip over nav bar for accessibility 27 * @summary Add ability to skip over nav bar for accessibility
28 * @author dkramer 28 * @author dkramer
29 * @run main AccessSkipNav 29 * @run main AccessSkipNav
30 */ 30 */
31 31
84 private static final String[][] testArray = { 84 private static final String[][] testArray = {
85 85
86 // 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>
87 87
88 // Top navbar <a href> 88 // Top navbar <a href>
89 { "<a href=\"#skip-navbar_top\" title=\"Skip navigation links\">Skip navigation links</a>", 89 { "<a href=\"#skip.navbar.top\" title=\"Skip navigation links\">Skip navigation links</a>",
90 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 90 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
91 91
92 // Top navbar <a name> 92 // Top navbar <a name>
93 { "<a name=\"skip-navbar_top\">" + LS + 93 { "<a name=\"skip.navbar.top\">" + LS +
94 "<!-- -->" + LS + "</a>", 94 "<!-- -->" + LS + "</a>",
95 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 95 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
96 96
97 // Bottom navbar <a href> 97 // Bottom navbar <a href>
98 { "<a href=\"#skip-navbar_bottom\" title=\"Skip navigation links\">Skip navigation links</a>", 98 { "<a href=\"#skip.navbar.bottom\" title=\"Skip navigation links\">Skip navigation links</a>",
99 TMPDEST_DIR1 + "p1" + FS + "C1.html" }, 99 TMPDEST_DIR1 + "p1" + FS + "C1.html" },
100 100
101 // Bottom navbar <a name> 101 // Bottom navbar <a name>
102 { "<a name=\"skip-navbar_bottom\">" + LS + 102 { "<a name=\"skip.navbar.bottom\">" + LS +
103 "<!-- -->" + LS + "</a>", 103 "<!-- -->" + LS + "</a>",
104 TMPDEST_DIR1 + "p1" + FS + "C1.html" } 104 TMPDEST_DIR1 + "p1" + FS + "C1.html" }
105 }; 105 };
106 106
107 public static void runTestsOnHTML(String[][] testArray) { 107 public static void runTestsOnHTML(String[][] testArray) {

mercurial