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

changeset 1995
dd64288f5659
parent 798
4868a36f6fd8
child 2101
933ba3f81a87
equal deleted inserted replaced
1994:3dd40e5715fb 1995:dd64288f5659
1 /* 1 /*
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2013, 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 4638136 26 * @bug 4638136 7198273
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
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 AccessSkipNav { 43 public class AccessSkipNav {
44 44
45 private static final String BUGID = "4638136"; 45 private static final String BUGID = "4638136 - 7198273";
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 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;
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\"></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\"></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>",

mercurial